Class Index | File Index

Classes


Class JRay


Extends RigidBody.
JRay
Defined in: jray.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
JRay(_origin, _dir)
Field Summary
Field Attributes Field Name and Description
 
dir
the direction of the ray expressed as a 3D vector
 
the origin of the ray expressed as a 3D vector
Fields borrowed from class RigidBody:
collisions, idCounter, isActive
Fields borrowed from class :
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
Method Summary
Method Attributes Method Name and Description
 
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, segmentIntersect, 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, updateState, updateVelocity, yaw
Class Detail
JRay(_origin, _dir)

Author: Muzer(muzerly@gmail.com).
Parameters:
{array} _origin
the origin of the ray expressed as a 3D vector
{array} _dir
the direction of the ray expressed as a 3D vector
Requires:
Vector3DUtil
JNumber3D
Field Detail
{array} dir
the direction of the ray expressed as a 3D vector

{array} origin
the origin of the ray expressed as a 3D vector
Method Detail
{array} getOrigin(t)
Parameters:
{number} t

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