org.odejava.xode
Class XODEBody
java.lang.Object
org.odejava.xode.XODEObject
org.odejava.xode.XODEContainer
org.odejava.xode.XODEGroup
org.odejava.xode.XODEBody
- All Implemented Interfaces:
- Serializable
public class XODEBody
- extends XODEGroup
- implements Serializable
XODE representation of a Body
- Author:
- William Denniss
- See Also:
- Serialized Form
| Methods inherited from class org.odejava.xode.XODEContainer |
addChild, addChildElements, addChildren, addTransformElement, getBodyRelTransform, getChildren, getPosition, getRootTransform, getRotation, getTransform, getTransform, getXODETransform, invalidateTransformCache, isAbsoluteTransformMode, parseTransform, removeChild, scrapDOMObjectCache, scrapODEObjectCache, setAbsolute, setParent, setPosition, setRotation, setTransform |
finiteRotationMode
protected Float finiteRotationMode
finiteRotationAxisX
protected Float finiteRotationAxisX
finiteRotationAxisY
protected Float finiteRotationAxisY
finiteRotationAxisZ
protected Float finiteRotationAxisZ
totalMass
protected Float totalMass
XODEBody
protected XODEBody()
XODEBody
public XODEBody(String name,
org.openmali.vecmath2.Matrix4f transform)
XODEBody
public XODEBody(Node xodeData)
XODEBody
public XODEBody(Body body)
- Creates an XODEBody based on the given ODE body.
Also adds child geometry as XODEGeom obejcts.
- Parameters:
body - the ODE body to use
buildOde
public void buildOde(World world,
Space space,
String namePrefix,
List<Object> odeList)
- Description copied from class:
XODEObject
- Constructs the ODE scene based on this XODE structure
- Overrides:
buildOde in class XODEContainer
- Parameters:
world - the World to add created bodiesspace - the Space to add created geometrynamePrefix - string to prefix all namesodeList - list of all created ODE files (will be added to)
buildElement
public Element buildElement(Document doc)
- Description copied from class:
XODEObject
- Builds an XML DOM representation of this XODEObject
- Overrides:
buildElement in class XODEGroup
- Parameters:
doc - the Document this Element will be associated with
- Returns:
- and XML DOM representation of this XODEObject
getTotalMass
public float getTotalMass()
setTotalMass
public void setTotalMass(float totalMass)