Class Index | File Index

Classes


Class JConstraintWorldPoint


Extends JConstraint.
JConstraintWorldPoint a constraint that links a point on a body to a point in the world
Defined in: jconstraintworldpoint.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
JConstraintWorldPoint(body, pointOnBody, worldPosition)
Field Summary
Field Attributes Field Name and Description
 
how much the points are allowed to deviate
 
the timescale over which deviation is eliminated
Fields borrowed from class :
JConstraint#_constraintEnabled, JConstraint#_satisfied, JConstraintWorldPoint#_body, JConstraintWorldPoint#_minVelForProcessing, JConstraintWorldPoint#_pointOnBody, JConstraintWorldPoint#_worldPosition
Method Summary
Method Attributes Method Name and Description
 
apply(dt)
 
 
Methods borrowed from class JConstraint:
disableConstraint, enableConstraint, get_constraintEnabled, get_satisfied, preApply, set_satisfied
Class Detail
JConstraintWorldPoint(body, pointOnBody, worldPosition)

Author: Muzer(muzerly@gmail.com).
Parameters:
{RigidBody} body
the body to constrain
{array} pointOnBody
point on the body, in body coordinates, expressed as a 3D vector
{array} worldPosition
the point in the world to which the body should be constrained
Requires:
Vector3DUtil
JMatrix3D
JNumber3D
Field Detail
{number} allowedDeviation
how much the points are allowed to deviate

{number} timescale
the timescale over which deviation is eliminated
Method Detail
{boolean} apply(dt)
Parameters:
{number} dt
a UNIX timestamp

{array} get_worldPosition()

{void} set_worldPosition(pos)
Parameters:
{array} pos
a 3D vector

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Feb 25 2011 08:49:09 GMT+0100 (CET)