Falling object with smoth animate rotation ,,

Falling object with smoth animate rotation  ,

Hi Juario_soul.  Is this a question?  Did your post get cut off?  It’s really hard for us to know what your asking.  If you have some code that’s not working as you like perhaps you could post the relevant code.  We really can’t help you with out more information.

Yes sir! its a question… my object is from the top and its falling from the ground but my concern is…
how can my object animate smothly rotating while its falling…

heres my sample code:

btl1 = display.newImage(“bottle.png”)
        btl1.x = 70; btl1.y = 16
        physics.addBody( btl1, { density=5.0, friction=0.3, bounce=0.1 })

There are multiple ways:

  1. Use a multi-frame sprite instead of a fixed image.

  2. Apply rotational energy by setting an angular velocity: http://docs.coronalabs.com/api/type/Body/angularVelocity.html

  3. Apply a transition using “transition.to”.

thank you ser very helpfull … 

the code example above is rotating to object to right…

what if i want my object rotating to left,?

Same thing, using negative numbers.

ok ser tnx much…

Hi Juario_soul.  Is this a question?  Did your post get cut off?  It’s really hard for us to know what your asking.  If you have some code that’s not working as you like perhaps you could post the relevant code.  We really can’t help you with out more information.

Yes sir! its a question… my object is from the top and its falling from the ground but my concern is…
how can my object animate smothly rotating while its falling…

heres my sample code:

btl1 = display.newImage(“bottle.png”)
        btl1.x = 70; btl1.y = 16
        physics.addBody( btl1, { density=5.0, friction=0.3, bounce=0.1 })

There are multiple ways:

  1. Use a multi-frame sprite instead of a fixed image.

  2. Apply rotational energy by setting an angular velocity: http://docs.coronalabs.com/api/type/Body/angularVelocity.html

  3. Apply a transition using “transition.to”.

thank you ser very helpfull … 

the code example above is rotating to object to right…

what if i want my object rotating to left,?

Same thing, using negative numbers.

ok ser tnx much…