SetEntityAngle

From OxeyeWiki

Revision as of 12:29, 7 February 2010 by Jeb (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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