Class Index | File Index

Classes


Class JChassis


Extends JBox.
JChassis represents vehicle chassis
Defined in: jchassis.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
JChassis(car, skin, width, depth, height)
Fields borrowed from class :
JBox#_edges, JBox#_faces, JBox#_points, JBox#_sideLengths, JChassis#_car, 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 Summary
Method Attributes Method Name and Description
 
 
Methods borrowed from class JBox:
get_edges, get_sideLengths, getCornerPoints, getCornerPointsInBoxSpace, getDistanceToPoint, getHalfSideLengths, getInertiaProperties, getSpan, getSqDistanceToPoint, getSupportVertices, getSurfaceArea, getVolume, initPoints, pointIntersect, segmentIntersect, set_sideLengths, updateBoundingBox
Methods borrowed from class RigidBody:
addBodyForce, addBodyTorque, addConstraint, 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, getShouldBeActive, getShouldBeActiveAux, getTransform, getVelChanged, getVelocity, getVelocityAux, hitTestObject3D, internalRestoreImmovable, internalSetImmovable, limitAngVel, limitVel, moveTo, pitch, 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, updateInertia, updateObject3D, updatePositionWithAux, updateState, updateVelocity, yaw
Class Detail
JChassis(car, skin, width, depth, height)

Author: Muzer(muzerly@gmail.com).
Parameters:
{JCar} car
the vehicle this chassis belongs to
{ISkin3D} skin
the mesh
{number} width
the required chassis width
{number} depth
the required chassis depth
{number} height
the required chassis height
Method Detail
{void} addExternalForces(dt)
Parameters:
{number} dt
a UNIX timestamp

{void} postPhysics(dt)
Parameters:
{number} dt
a UNIX timestamp

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