- type
- class
- extends
- Interactor
Class representing a physics Rigid Body.
Instance Properties hide inherited show inherited
readonly var arbiters : nape.dynamics.ArbiterList
readonly var bounds : nape.geom.AABB
readonly var castBody : Null<Body>
inherited from nape.phys.Interactor
Fast equivalent to cast(interactor, Body)
readonly var castCompound : Null<Compound>
inherited from nape.phys.Interactor
Fast equivalent to cast(interactor, Compound)
readonly var castShape : Null<nape.shape.Shape>
inherited from nape.phys.Interactor
Fast equivalent to cast(interactor, Shape)
readonly var cbTypes : nape.callbacks.CbTypeList = []
inherited from nape.phys.Interactor
Set of CbType's assigned to this Interactor.
var compound : Null<Compound> = null
readonly var constraintVelocity : nape.geom.Vec3
readonly var constraints : nape.constraint.ConstraintList
var force : nape.geom.Vec2 = (0,0)
var gravMassMode : GravMassMode = GravMassMode.DEFAULT
var group : Null<nape.dynamics.InteractionGroup> = null
inherited from nape.phys.Interactor
InteractionGroup assigned to this Interactor.
readonly var id : Int
inherited from nape.phys.Interactor
Unique id of this Interactor.
var inertiaMode : InertiaMode = InertiaMode.DEFAULT
var kinematicVel : nape.geom.Vec2 = (0,0)
readonly var localCOM : nape.geom.Vec2
var massMode : MassMode = MassMode.DEFAULT
var position : nape.geom.Vec2 = (0,0)
readonly var shapes : nape.shape.ShapeList = []
var space : Null<nape.space.Space>
var surfaceVel : nape.geom.Vec2 = (0,0)
var type : BodyType
readonly var userData : Dynamic<Dynamic> = {}
inherited from nape.phys.Interactor
var velocity : nape.geom.Vec2 = (0,0)
readonly var worldCOM : nape.geom.Vec2
Instance Methods hide inherited show inherited
function align():Body
function applyAngularImpulse(impulse:Float, sleepable:Bool = false):Body
function applyImpulse(impulse:nape.geom.Vec2, pos:nape.geom.Vec2 = body.position, sleepable:Bool = false):Body
function buoyancyImpulse(body:Body = null):nape.geom.Vec3
function constraintsImpulse():nape.geom.Vec3
function contains(point:nape.geom.Vec2):Bool
function copy():Body
function dragImpulse(body:Body = null):nape.geom.Vec3
function integrate(deltaTime:Float):Body
function interactingBodies(type:nape.callbacks.InteractionType = null, depth:Int = -1, output:BodyList = null):BodyList
isBody():Bool
inherited from nape.phys.Interactor
isCompound():Bool
inherited from nape.phys.Interactor
isShape():Bool
inherited from nape.phys.Interactor