Collision and applyImpulse

sja
Posts: 3
Joined: Fri Feb 20, 2009 9:35 pm

Collision and applyImpulse

Post by sja »

Hello,

I need in set const speed to body of one variable.
i.e. angle of board.
If angle = 0, speed = 0, angle = 10, then speed = 100 and others.

I've got next problem:
I 'm set every frame force for body (get value from angle and set) use resetForces() and applyForce()
and if my variable is const, i.e. 10, then speed set to 100 and increment up every frame .1.

If i use applyImpulse, and set speed to 0 before applyImpulse (body->v.x, y = 0), then i've got good speed, but collision detection is not work :(

Where have i a mistake ?

thanks