Physics Engine and Sprite Sheets.. how do I get it to work right

Hello,

So I am new to using the physics engine and am wondering if it is possible to get this to work or if I am just missing something.

So I have a sprite sheet that is the arm of a construction vehicle. When a button is pushed, the arm is lowered and, when pushed again, it is raised. So when I add the sprite to the physics engine, it is just a large box area. I was able to reduce the area to around the claw of the machine, but when the button is pressed to lower the arm, the physics area does not move. Is there a way to have it move with the arm movement?

Hopefully this makes sense. Thanks!

[import]uid: 79834 topic_id: 18902 reply_id: 318902[/import]

Is the arm actually moving or is it a sprite sheet animating but not actually moving?

Peach :slight_smile: [import]uid: 52491 topic_id: 18902 reply_id: 72860[/import]

Here is a video of my first app in action with no physics enabled:
http://www.youtube.com/watch?v=zE8RK4gnUQc

I used Zwoptex to create the sprite sheets for the vehicle parts. For instance the arm of the dump truck is its own sprite instance. In the physics engine it is just a rectangle and when the arm is lifted, nothing happens to the rectangle. I’d like to get it so when the action is performed the physics area actually moves. [import]uid: 79834 topic_id: 18902 reply_id: 72866[/import]