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.Group
Special Collidable subclass used to denote generic groups of
Collidables.
|
ModelComponent.NavpanelVisibility
Modifier and Type | Field and Description |
---|---|
static Collidable.Group |
All
Group specifying all collidable bodies and self-collision
|
static Collidable.Group |
AllBodies
Group specifying all rigid and deformable collidable bodies
|
static Collidable.Group |
Deformable
Group specifying all deformable collidable bodies
|
static Collidable.Group |
Rigid
Group specifying all rigid collidable bodies
|
static Collidable.Group |
Self
Group specifying self-collision
|
Modifier and Type | Method and Description |
---|---|
Collidable.Collidability |
getCollidable()
Returns the
Collidable.Collidability of this Collidable. |
Collidable |
getCollidableAncestor()
Returns the most immediate Collidable ancestor of this Collidable,
if any.
|
boolean |
isCompound()
Queries whether or not this collidable has sub-collidables.
|
boolean |
isDeformable()
Returns
true if this collidable is deformable. |
connectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable, updateReferences
getAllPropertyInfo, getProperty
getChildren, hasChildren
postscan
isWritable, write
static final Collidable.Group Self
static final Collidable.Group Rigid
static final Collidable.Group Deformable
static final Collidable.Group AllBodies
static final Collidable.Group All
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.
Collidable getCollidableAncestor()
null
.null
.boolean isCompound()
true
if this collidable has sub-collidablesboolean 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