Throwing A Grenade

Blitz3D Forums/Blitz3D Programming/Throwing A Grenade

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

The TimeStep should be the time it takes your game to update a single frame ... e.g. 1.0 / FramesPerSecond.

If you use the tform commands there will be no need to rotating the grenade before throwing it. In my example you could use ..

TFormPoint 0,0,10,CAMERA , 0 to get the starting position of the grenade 10 units in front of the camera. Note that the CAMERA rotation is taken into consideration.

TFormVector 0,0,TEST\Power, CAMERA, 0 can also be used to get the initial velocity of the grenade.

E-mail me the relevant routines as they stand and I'll have a look.

stevieATSteviegoodwin.plus.com