Class JPlane
Extends
RigidBody.
JPlane
Defined in: jplane.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
JPlane(skin, initNormal)
|
- Fields borrowed from class :
- JPlane#_distance, JPlane#_initNormal, JPlane#_normal, RigidBody#_activity, RigidBody#_bodiesToBeActivatedOnMovement, RigidBody#_bodyInertia, RigidBody#_bodyInvInertia, RigidBody#_boundingBox, RigidBody#_boundingSphere, RigidBody#_constraints, RigidBody#_currLinVelocityAux, RigidBody#_currRotVelocityAux, RigidBody#_currState, RigidBody#_doShockProcessing, RigidBody#_force, RigidBody#_id, RigidBody#_inactiveTime, RigidBody#_invMass, RigidBody#_invOrientation, RigidBody#_lastOrientationForDeactivation, RigidBody#_lastPositionForDeactivation, RigidBody#_linVelDamping, RigidBody#_mass, RigidBody#_material, RigidBody#_maxLinVelocities, RigidBody#_maxRotVelocities, RigidBody#_movable, RigidBody#_nonCollidables, RigidBody#_oldState, RigidBody#_origMovable, RigidBody#_rotationX, RigidBody#_rotationY, RigidBody#_rotationZ, RigidBody#_rotVelDamping, RigidBody#_skin, RigidBody#_storedPositionForActivation, RigidBody#_storeState, RigidBody#_torque, RigidBody#_type, RigidBody#_useDegrees, RigidBody#_velChanged, RigidBody#_worldInertia, RigidBody#_worldInvInertia
- Fields borrowed from class RigidBody:
- collisions, idCounter, isActive
| Method Attributes | Method Name and Description |
|---|---|
|
segmentIntersect(out, seg, state)
|
|
- Methods borrowed from class RigidBody:
- addBodyForce, addBodyTorque, addConstraint, addExternalForces, addGravity, addMovementActivation, addWorldForce, addWorldTorque, applyBodyWorldImpulse, applyBodyWorldImpulseAux, applyWorldImpulse, applyWorldImpulseAux, clearForces, clearVelChanged, copyCurrentStateToOld, createRotationMatrix, dampForDeactivation, degreesToRadians, disableCollisions, doMovementActivations, enableCollisions, findConstraint, findNonCollidablesBody, get_boundingBox, get_boundingSphere, get_currentState, get_doShockProcessing, get_force, get_friction, get_id, get_invMass, get_linVelocityDamping, get_mass, get_material, get_maxLinVelocities, get_maxRotVelocities, get_movable, get_nonCollidables, get_oldState, get_position, get_restitution, get_rotationX, get_rotationY, get_rotationZ, get_rotVelocityDamping, get_skin, get_type, get_worldInertia, get_worldInvInertia, get_x, get_y, get_z, getInertiaProperties, getShouldBeActive, getShouldBeActiveAux, getTransform, getVelChanged, getVelocity, getVelocityAux, hitTestObject3D, internalRestoreImmovable, internalSetImmovable, limitAngVel, limitVel, moveTo, pitch, postPhysics, radiansToDegrees, removeAllConstraints, removeConstraint, restoreState, roll, set_doShockProcessing, set_friction, set_linVelocityDamping, set_mass, set_maxLinVelocities, set_maxRotVelocities, set_movable, set_restitution, set_rotationX, set_rotationY, set_rotationZ, set_rotVelocityDamping, set_x, set_y, set_z, setActive, setAngVel, setAngVelAux, setConstraintsAndCollisionsUnsatisfied, setInactive, setInertia, setOrientation, setRotation, setVelocity, setVelocityAux, storeState, tryToFreeze, updateBoundingBox, updateInertia, updateObject3D, updatePositionWithAux, updateVelocity, yaw
Class Detail
JPlane(skin, initNormal)
Author: Muzer(muzerly@gmail.com).
- Parameters:
- {ISkin3D} skin
- {array} initNormal
- Requires:
- Vector3DUtil
- JMatrix3D
- JNumber3D
Method Detail
{number}
get_distance()
{array}
get_normal()
{array}
pointPlaneDistance(pt)
- Parameters:
- {array} pt
- the point expressed as a 3D vector
{boolean}
segmentIntersect(out, seg, state)
- Parameters:
- {object} out
- {JSegment} seg
- {PhysicsState} state
{void}
updateState()