Physics and rotation

Ok, i need some help on this.

I’m trying to create a game where you have to throw darts and hit some targets, avoid the guy on the rotating wheel.

I figured i needed to use physics, because you need to trace the guy to detect if he got hit.

But i’m stuck. Maybe somebody can point me into the right direction?

I need 2 things:

  1. Whenever i throw the arrow, i need to detect if the guy, the rotating board, or the target gets hit.

  2. Make sure the physics shape follows the guy.png file, wich it doesn’t for now.
    Sample code available here:
    http://www.rmbsoft.com/programs/DartWheel.rar

Screenshot: http://www.rmbsoft.com/programs/rotation.jpg

Hopefully somebody can point me in the right direction!

[import]uid: 50459 topic_id: 22518 reply_id: 322518[/import]

try something like this

[lua]guy.angularVelocity = 30

local myListener = function( event )
– wheelGroup.rotation = wheelGroup.rotation + 1
end
Runtime:addEventListener( “enterFrame”, myListener )[/lua] [import]uid: 12482 topic_id: 22518 reply_id: 89771[/import]