physics

im sorta new to corona don’t know much whats the code to make an object go up on a touch? [import]uid: 35843 topic_id: 21676 reply_id: 321676[/import]

Just to add to this - kc’s description is great if you are using physics but if you aren’t then you’d want to look at transition.to() which you can read about here; http://developer.anscamobile.com/reference/index/transitionto

Peach :slight_smile: [import]uid: 52491 topic_id: 21676 reply_id: 86045[/import]

[lua]yourObject:applyLinearImpulse( xPower, ypower, xPoint, yPoint)[/lua]
yourObject is the object you’re trying to apply force to

xPower is the amount of power you’re trying to force it left or right, right being positive, left being negative

yPower is the amount of power you’re trying to force it up or down, up being negative, down being positive,

xPoint and yPoint are the areas of your object you want your force to apply to, 0 being the x and y point of the middle of your object.
Imagine your hand pushing from the point you specify. That’s how the force is applied. [import]uid: 44607 topic_id: 21676 reply_id: 86011[/import]

thank you for the help :slight_smile: [import]uid: 35843 topic_id: 21676 reply_id: 86210[/import]