I have a specific, but sort of general, question about sensor granularity when it comes to DPU events and functions. What level of granularity can we expect from various sensor systems for things like developing an AI-based targetting system?
For example, in the Lua DevBlog, the radar was mentioned with an enemyAt(x, y, z) event and the inclinometer would have our ship's getPitch() / getRoll() functions. Let's say I am building a targetting AI for a laser-based weapon. I would simply use the current enemyAt(x, y, z) position for the target location as it would be very unlikely to combat at or near light speed.
But if my ship is using a projectile weapons system with a bit of delay before reaching the target, I would need to program the AI to use the enemy position plus their current direction of movement and velocity, combined my my ship's current direction velocity to compensate and lead the gun appropriately to hit the target if they maintain their current speed and vector.
So, will things like getEnemySpeed(id) and getEnemyVector(id) functions be available from the sensor systems? Or will the gun DPU system have basic targeting and appropriate aim leading code already implemented for AI and human firing?
On another note, would there be a mechanism for rayCast targetting from a gun? ie. Checking in the direction the gun is pointing to find the collision position and ensure it isn't a point on my own ship, or a friendly ship before firing?
Sorry for all the technical questioning, but thanks for listening!