[Resolved] Making a physics object move continually ?

I want to make a object move forward all the time while I control the left right.

Hard to explain really, so as an example say it’s a racing car on a track (top down view). I want the car to go forward by itself and the player just controls left/right.

I thought in the physics api there might have been a way to set something, so the object is constantly moving but I can’t find anything.

As far as I can see the only way is keep changing the x/y in a enterFrame handler.

Any ideas ?

Dave [import]uid: 117617 topic_id: 24324 reply_id: 324324[/import]

Use

myObject:setLinearVelocity(x, y) [import]uid: 84637 topic_id: 24324 reply_id: 98253[/import]

Thanks, thought there would be a simple way.

Dave [import]uid: 117617 topic_id: 24324 reply_id: 98289[/import]