API Documentation
Classes
- _global_
- GLGE
- GLGE.Action
- GLGE.ActionChannel
- GLGE.Animatable
- GLGE.AnimationCurve
- GLGE.AnimationVector
- GLGE.Assets
- GLGE.BezTriple
- GLGE.Camera
- GLGE.Collada
- GLGE.Document
- GLGE.DocumentPreloader
- GLGE.Events
- GLGE.FilePreloader
- GLGE.FilterAO
- GLGE.FilterGlow
- GLGE.Group
- GLGE.GUI
- GLGE.HeightMap
- GLGE.JSONLoader
- GLGE.KeyInput
- GLGE.Light
- GLGE.LinearPoint
- GLGE.Material
- GLGE.MaterialLayer
- GLGE.MD2
- GLGE.Mesh
- GLGE.Message
- GLGE.MouseInput
- GLGE.MultiMaterial
- GLGE.Object
- GLGE.ObjectLod
- GLGE.ParticleSystem
- GLGE.PhysicsAbstract
- GLGE.PhysicsBox
- GLGE.PhysicsCar
- GLGE.PhysicsConstraintPoint
- GLGE.PhysicsMesh
- GLGE.PhysicsPlane
- GLGE.PhysicsSphere
- GLGE.PhysicsWheel
- GLGE.Placeable
- GLGE.QuickNotation
- GLGE.Renderer
- GLGE.Scene
- GLGE.Sphere
- GLGE.StepPoint
- GLGE.Text
- GLGE.Texture
- GLGE.TextureCamera
- GLGE.TextureCanvas
- GLGE.TextureCube
- GLGE.TextureVideo
- GLGE.Wavefront
- GUI.Gadget
- GUI.Preloader
- GUI.Progressbar
- GUI.Widget
Extends
GLGE.Group.
physics wheel class used with PhysicsCar class
Defined in: glge_physicscar.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
GLGE.PhysicsWheel(uid)
|
| Method Attributes | Method Name and Description |
|---|---|
|
addChild(child)
Adds a child to the wheel container
|
|
|
brake(brake)
Sets the braking level
|
|
|
drive(force)
Sets a driving force for the wheel
|
|
|
Gets the front friction coefficient
|
|
|
Gets the wheel Radius
|
|
|
Gets the side friction coefficient
|
|
|
Gets the suspension spring
|
|
|
Gets the suspension travel distance
|
|
|
getWheelRotation(rotation)
Gets the wheel Rotation
|
|
|
removeChild(child)
Removes a child to the wheel container
|
|
|
setFrontFriction(friction)
Sets the front friction coefficient
|
|
|
setPowered(powered)
Sets the wheel to be a powered wheel
|
|
|
setRadius(radius)
Sets the wheel Radius
|
|
|
setSideFriction(friction)
Sets the side friction coefficient
|
|
|
setSpring(radius)
Sets the suspension spring distance
|
|
|
setTravel(travel)
Sets the suspension travel distance
|
|
|
setWheelRotation(rotation)
Sets the wheel Rotation
|
- Methods borrowed from class GLGE.Group:
- addParticleSystem, downloadComplete, getBoundingVolume, getChildren, getLights, getNames, getObjects, getPickable, getVisible, isComplete, setAction, setPickable, setVisible, updateAllPrograms
- Methods borrowed from class GLGE.Animatable:
- animate, blendTo, getAnimation, getBlendFunction, getFrameNumber, getFrameRate, getLoop, getName, getPaused, isLooping, setAnimation, setBlendFunction, setFrameRate, setLoop, setName, setPaused, setStartFrame, togglePaused
- Methods borrowed from class GLGE.Events:
- addEventListener, fireEvent, removeEventListener
- Methods borrowed from class GLGE.Placeable:
- clearStaticMatrix, getDLocX, getDLocY, getDLocZ, getDRotX, getDRotY, getDRotZ, getDScaleX, getDScaleY, getDScaleZ, getId, getInverseModelMatrix, getLocalMatrix, getLocX, getLocY, getLocZ, getLookat, getModelMatrix, getPosition, getQuatW, getQuatX, getQuatY, getQuatZ, getRef, getRoot, getRotation, getRotMatrix, getRotOrder, getRotX, getRotY, getRotZ, getScale, getScaleMatrix, getScaleX, getScaleY, getScaleZ, getTranslateMatrix, getTransposeInverseModelMatrix, getTransposeModelMatrix, getUpAxis, Lookat, move, setDLoc, setDLocX, setDLocY, setDLocZ, setDRot, setDRotX, setDRotY, setDRotZ, setDScale, setDScaleX, setDScaleY, setDScaleZ, setId, setLoc, setLocX, setLocY, setLocZ, setLookat, setQuat, setQuatW, setQuatX, setQuatY, setQuatZ, setRot, setRotMatrix, setRotOrder, setRotX, setRotY, setRotZ, setScale, setScaleX, setScaleY, setScaleZ, setStaticMatrix, setTransformMode, setUpAxis
- Methods borrowed from class GLGE.QuickNotation:
- _
- Methods borrowed from class GLGE.JSONLoader:
- getDownloadPriority, setDownloadPriority, setJSONSrc, setJSONString
- Events borrowed from class GLGE.Group:
- childAdded, childRemoved, downloadComplete
- Events borrowed from class GLGE.Animatable:
- animFinished
- Events borrowed from class GLGE.Placeable:
- appened, childMatrixUpdate, matrixUpdate, removed
Method Detail
addChild(child)
Adds a child to the wheel container
- Parameters:
- {object} child
- a GLGE object to represent the wheel
brake(brake)
Sets the braking level
- Parameters:
- {number} brake
- 0-1 value indicating the level of braking
drive(force)
Sets a driving force for the wheel
- Parameters:
- {number} force
- the driving force in N
getFrontFriction()
Gets the front friction coefficient
- Returns:
- the front fricition coefficient
getRadius()
Gets the wheel Radius
- Returns:
- the wheel radius
getSideFriction()
Gets the side friction coefficient
- Returns:
- the side fricition coefficient
getSpring()
Gets the suspension spring
- Returns:
- the wheel radius
getTravel()
Gets the suspension travel distance
- Returns:
- the suspension travel
getWheelRotation(rotation)
Gets the wheel Rotation
- Parameters:
- rotation
- Returns:
- the wheel roation in radians
removeChild(child)
Removes a child to the wheel container
- Parameters:
- {object} child
- a GLGE object to represent the wheel
setFrontFriction(friction)
Sets the front friction coefficient
- Parameters:
- {number} friction
- the front fricition coefficient
setPowered(powered)
Sets the wheel to be a powered wheel
- Parameters:
- {boolean} powered
- flag indicateding if wheel is powered
setRadius(radius)
Sets the wheel Radius
- Parameters:
- {number} radius
- the wheel radius
setSideFriction(friction)
Sets the side friction coefficient
- Parameters:
- {number} friction
- the side fricition coefficient
setSpring(radius)
Sets the suspension spring distance
- Parameters:
- {number} radius
- the wheel radius
setTravel(travel)
Sets the suspension travel distance
- Parameters:
- {number} travel
- the suspension travel
setWheelRotation(rotation)
Sets the wheel Rotation
- Parameters:
- {number} rotation
- the rotation of the wheel
Documentation generated by JsDoc Toolkit 2.4.0 on Sun Feb 12 2012 14:20:23 GMT+0000 (GMT)