Projectiles as Rigid Bodies, constant speed and deletion

Post Reply
a-lexu
Posts: 1
Joined: Sun Nov 18, 2012 7:15 pm

Projectiles as Rigid Bodies, constant speed and deletion

Post by a-lexu »

Hello,

I'm creating projectiles as Rigid Bodies on the fly,

1) How can I detect when they hit the player's Rigid Body so I can delete them, and
2) How can I set a constant velocity? I have a TillCallback where I limit the player's max velocity, but I can't set the projectiles to a constant speed.

One way could be accessing world's rigid bodies as an array and identifying the projectiles to set a constant speed.

Thanks a lot
Post Reply