public class Body extends PhysicalFrame implements ModelComponentGenerator<RigidBody>
VisibleBase.DisplayPreference
Constructor and Description |
---|
Body() |
Modifier and Type | Method and Description |
---|---|
Body |
clone() |
RigidBody |
createComponent(java.io.File geometryPath,
ModelComponentMap componentMap)
Creates and returns a model component, using the provided component map
to look up other dependent objects.
|
SymmetricMatrix3d |
getInertia() |
Joint |
getJoint() |
double |
getMass() |
Point3d |
getMassCenter() |
void |
setInertia(double[] vals) |
void |
setInertia(SymmetricMatrix3d sym) |
void |
setInertiaXX(double xx) |
void |
setInertiaXY(double xy) |
void |
setInertiaXZ(double xz) |
void |
setInertiaYY(double yy) |
void |
setInertiaYZ(double yz) |
void |
setInertiaZZ(double zz) |
void |
setJoint(Joint joint) |
void |
setMass(double mass) |
void |
setMassCenter(Point3d point) |
getWrapObjectSet, setWrapObjectSet
getAttachedGeometry, setAttachedGeometry, setFrameGeometry
createRenderProps, getAppearance, setAppearance
getVisibleObject, setVisibleObject
getColor, getDisplayPreference, getOpacity, setColor, setDisplayPreference, setOpacity
public void setMass(double mass)
public double getMass()
public void setMassCenter(Point3d point)
public Point3d getMassCenter()
public void setInertia(SymmetricMatrix3d sym)
public void setInertiaXX(double xx)
public void setInertiaYY(double yy)
public void setInertiaZZ(double zz)
public void setInertiaXY(double xy)
public void setInertiaXZ(double xz)
public void setInertiaYZ(double yz)
public void setInertia(double[] vals)
public SymmetricMatrix3d getInertia()
public Joint getJoint()
public void setJoint(Joint joint)
public Body clone()
clone
in interface Clonable
clone
in class PhysicalFrame
public RigidBody createComponent(java.io.File geometryPath, ModelComponentMap componentMap)
ModelComponentGenerator
createComponent
in interface ModelComponentGenerator<RigidBody>
createComponent
in class PhysicalFrame
geometryPath
- path to search for geometry filescomponentMap
- map for looking up other objects