public class Body extends PhysicalFrame implements ModelComponentGenerator<RigidBody>
VisibleBase.DisplayPreference| Constructor and Description |
|---|
Body() |
| Modifier and Type | Method and Description |
|---|---|
Body |
clone() |
RigidBodyOsim |
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, setWrapObjectSetgetAttachedGeometry, setAttachedGeometry, setFrameGeometrycreateRenderProps, getAppearance, setAppearancegetVisibleObject, setVisibleObjectgetColor, getDisplayPreference, getOpacity, setColor, setDisplayPreference, setOpacitypublic 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 Clonableclone in class PhysicalFramepublic RigidBodyOsim createComponent(java.io.File geometryPath, ModelComponentMap componentMap)
ModelComponentGeneratorcreateComponent in interface ModelComponentGenerator<RigidBody>createComponent in class PhysicalFramegeometryPath - path to search for geometry filescomponentMap - map for looking up other objects