Object- its a truck.
- I need to give rotation to the wheels to make it move?
If so -
2)How to make them hold together ( body and wheels) , at the same time making only wheels rotate?
[import]uid: 37866 topic_id: 7104 reply_id: 307104[/import]
Object- its a truck.
If so -
2)How to make them hold together ( body and wheels) , at the same time making only wheels rotate?
[import]uid: 37866 topic_id: 7104 reply_id: 307104[/import]
I would just animate the wheels, and not use them as actual objects. Then make them move with the body and use physics or transitions or an enterframe listener to move the body to the right. [import]uid: 10903 topic_id: 7104 reply_id: 25017[/import]
theoretically you could port the 2nd example here to Corona
http://www.emanueleferonato.com/2009/04/06/two-ways-to-make-box2d-cars/
there’s also the billy cart kindly posted by MarkHenryC
http://developer.anscamobile.com/code/billy-cart-corona
[import]uid: 6645 topic_id: 7104 reply_id: 25363[/import]
thanks for the reply, but thats not what im looking for.
my idea - press the button and the truck starts rolling to the right continuousely with no stearing, acceleration,brakes.Just rolling. [import]uid: 37866 topic_id: 7104 reply_id: 25393[/import]