SetEntityAngle

From OxeyeWiki

(Difference between revisions)
Jump to: navigation, search
Jeb (Talk | contribs)
(Created page with '{{PhysicsMethod| physics:setEntityAngle(entityId, angle) | Forces the entity's body angle to be set to a certain value. Works even if the body's definition has set fixedRotation....')

Latest revision as of 12:29, 7 February 2010

physics:setEntityAngle(entityId, angle)

Forces the entity's body angle to be set to a certain value. Works even if the body's definition has set fixedRotation.

Parameter Expected Type Description
entityId An integer The body id number of the entity.
angle A number The new body angle, in radians.
Returns

Returns nothing.

Daisymoon Physics Lib


Example


   local o = createObstacle(-4, 2.5, 2, 3, .3)
   myPhysics:setEntityAngle(o.body, math.pi * .3)

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox