physics and rotation

For questions about using Classic.

Post » Wed Jan 21, 2009 1:33 pm

i'm just playing with physics, and made a box out of 4 walls, the hotspots of the walls are set to the same place so that when I rotate them all counterclockwise or clockwise, the box rotates..

I set a gravity'd ball and a sprite box within the box just to play with the behaviour, but the collision seems to break when I rotate, and also the objects stop as if theyve met a collision, but they are nowhere near - any hints n tips??

thanks all
B
4
S
2
G
5
Posts: 149
Reputation: 2,025

Post » Wed Jan 21, 2009 1:37 pm

when you Set Angle on a sprite with the Physics behavior, it 'teleports' the physics behavior to the new angle. It won't do proper physics collisions.

You should play with the torque or angular velocity physics controls instead.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,630


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests