Torpedos
Blitz3D Forums/Blitz3D Beginners Area/Torpedos
| ||
I am trying out a small space fight game, to add to my project. I have a main screen with one cube. I have created a cube and tested for mouse to object collision with camerapick to test some ideas. Now I want to test firing torpedos, relatively slow objects at this cube using a sphere. How do I calculate the trajectory or fire the sphere in the correct direction? If even there is a thread I would appreciate being pointed into the right direction. Cheers in advance Mango |
| ||
Position your sphere where you want it to start Pointentity sphere,target then moveentity sphere,0,0,speed in your loop. |
| ||
Just what I needed thanks! I had completly bypassed the idea of being able to point a entity from a command and was looking at other ways. Glad you told me before I got too deep into using a different technique. I am curious to under if entitypick cube, 2 is quicker than the other options of cube and sphere using camerpick? Mango |