01.07.2017, 21:48
What's the path of that rocket?
If it's a non-homing rocket which travels a straight line, just use CA_RayCastLine once and you know the end position.
For more complex paths (eg homing rocket with moving target, like a vehicle) it's almost the same, just that you have to raycast for every change in direction that the rocket does.
CA uses way less resources than you think. A 5000 Node 3D Path can be checked for collisions within a few ms (using raycasting), and I seriously doubt any Rocket will fly that far. If the target is moving it has to check only once every few ms anyway.
If it's a non-homing rocket which travels a straight line, just use CA_RayCastLine once and you know the end position.
For more complex paths (eg homing rocket with moving target, like a vehicle) it's almost the same, just that you have to raycast for every change in direction that the rocket does.
CA uses way less resources than you think. A 5000 Node 3D Path can be checked for collisions within a few ms (using raycasting), and I seriously doubt any Rocket will fly that far. If the target is moving it has to check only once every few ms anyway.

