Class FuncAnchoredCollidable
Represents a function-based implementation of an anchored collidable object.
public class FuncAnchoredCollidable : IAnchoredCollidableBased
- Inheritance
-
FuncAnchoredCollidable
- Implements
- Inherited Members
- Extension Methods
Constructors
FuncAnchoredCollidable(string, Func<IAnchoredCollidableNode>)
Initializes a new instance of the FuncAnchoredCollidable class with a name and a function to get the anchored collidable node.
public FuncAnchoredCollidable(string collidableName, Func<IAnchoredCollidableNode> getAnchoredCollidableNodeFunc)
Parameters
collidableName
stringThe name of the collidable object.
getAnchoredCollidableNodeFunc
Func<IAnchoredCollidableNode>The function to get the anchored collidable node.
Properties
CollidableName
Gets 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
GetAnchoredCollidableNodeFunc
Gets or sets the function to get the anchored collidable node.
public Func<IAnchoredCollidableNode> GetAnchoredCollidableNodeFunc { get; set; }
Property Value
Methods
GetAnchoredCollidableNode()
Gets the anchored collidable node associated with this object.
public IAnchoredCollidableNode GetAnchoredCollidableNode()
Returns
- IAnchoredCollidableNode
The anchored collidable node.