public interface Collidable extends ModelComponent
Modifier and Type | Interface and Description |
---|---|
static class |
Collidable.Collidability
Indicates the collision types that are enabled for this Collidable.
|
static class |
Collidable.DefaultCollidable |
ModelComponent.NavpanelVisibility
Modifier and Type | Field and Description |
---|---|
static Collidable |
Default |
static Collidable |
Deformable |
static Collidable |
RigidBody |
static Collidable |
Self |
Modifier and Type | Method and Description |
---|---|
Collidable.Collidability |
getCollidable()
Returns the
Collidable.Collidability of this Collidable. |
boolean |
isDeformable()
Returns
true if this collidable is deformable. |
connectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, postscan, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, updateReferences
getAllPropertyInfo, getProperty
getChildren, hasChildren
isWritable, write
static final Collidable Default
static final Collidable RigidBody
static final Collidable Deformable
static final Collidable Self
Collidable.Collidability getCollidable()
Collidable.Collidability
of this Collidable. This provides
control over whether external and/or internal collisions are enabled for
this Collidable. This setting takes precedence over default and
explicitly requested collision behaviors.
Note that for collisions to actually occur, they still need to be enabled through either a default or explicit collision behavior in the MechModel.
boolean isDeformable()
true
if this collidable is deformable. Whether or
not a collidable is deformable determines how it responds to default
collision behaviors involving deformable and rigid collidables. Also,
self-collisions among sub-collidables of a collidable A are permitted
only if A is deformable.true
if this collidable is deformable