Class AnchoredCollidableLeaf
Represents a leaf node in the anchored collidable hierarchy.
public class AnchoredCollidableLeaf : IAnchoredCollidableLeaf, IAnchoredCollidableNode, IAnchoredCollidableBased, ICollidable, IGetCollidable
- Inheritance
-
AnchoredCollidableLeaf
- Implements
- Inherited Members
- Extension Methods
Constructors
AnchoredCollidableLeaf()
Initializes a new instance of the AnchoredCollidableLeaf class.
public AnchoredCollidableLeaf()
AnchoredCollidableLeaf(string, Anchor, ICollidable)
Initializes a new instance of the AnchoredCollidableLeaf class with a name, anchor, and collidable object.
public AnchoredCollidableLeaf(string collidableName, Anchor anchor, ICollidable collidable)
Parameters
collidableName
stringThe name of the collidable object.
anchor
AnchorThe anchor for the collidable object.
collidable
ICollidableThe collidable object.
Properties
Anchor
Gets or sets the anchor for this collidable leaf.
public Anchor Anchor { get; set; }
Property Value
Collidable
Gets or sets the collidable object.
public ICollidable Collidable { get; set; }
Property Value
CollidableName
Gets or sets the name of the collidable object.
public string CollidableName { get; set; }
Property Value
CollisionFlag
Gets or sets the collision flag indicating the collision status of this collidable object.
public CollisionFlag CollisionFlag { get; set; }
Property Value
Methods
GetAnchoredCollidableNode()
Gets the anchored collidable node associated with this object.
public IAnchoredCollidableNode GetAnchoredCollidableNode()
Returns
- IAnchoredCollidableNode
The anchored collidable node.
GetCollidable()
Get ICollidable.
public ICollidable GetCollidable()
Returns
- ICollidable
The collidable object.
GetCollidableAnchor()
Gets the anchor associated with this collidable leaf.
public Anchor GetCollidableAnchor()
Returns
- Anchor
The anchor for this collidable leaf.
GetCollidee()
Get ICollidee.
public ICollidee GetCollidee()
Returns
GetRootAnchor()
public Anchor GetRootAnchor()