PackageBox2D.Dynamics.Controllers
Classpublic class b2TensorDampingController
Inheritanceb2TensorDampingController Inheritance b2Controller
Sourceb2TensorDampingController.as

Applies top down linear damping to the controlled bodies The damping is calculated by multiplying velocity by a matrix in local co-ordinates.



Public Properties
 PropertyDefined by
  maxTimestep : Number = 0
Set this to a positive number to clamp the maximum amount of damping done.
b2TensorDampingController
  T : b2Mat22
Tensor to use in damping model
b2TensorDampingController
Protected Properties
 PropertyDefined by
 Inheritedm_bodyCount : int
b2Controller
 Inheritedm_bodyList : b2ControllerEdge
b2Controller
Public Methods
 MethodDefined by
 Inherited
AddBody(body:b2Body):void
b2Controller
 Inherited
Clear():void
b2Controller
 Inherited
Draw(debugDraw:b2DebugDraw):void
b2Controller
 Inherited
b2Controller
 Inherited
b2Controller
 Inherited
b2Controller
 Inherited
RemoveBody(body:b2Body):void
b2Controller
  
SetAxisAligned(xDamping:Number, yDamping:Number):void
Helper function to set T in a common case
b2TensorDampingController
  
Step(step:b2TimeStep):void
b2TensorDampingController
Property detail
maxTimestepproperty
public var maxTimestep:Number = 0

Set this to a positive number to clamp the maximum amount of damping done.

Tproperty 
public var T:b2Mat22

Tensor to use in damping model

Method detail
SetAxisAligned()method
public function SetAxisAligned(xDamping:Number, yDamping:Number):void

Helper function to set T in a common case

Parameters
xDamping:Number
 
yDamping:Number
Step()method 
public override function Step(step:b2TimeStep):voidParameters
step:b2TimeStep