Class CollisionShape
Base class for collision shapes
Inheritance
CollisionShape
Assembly: SlipeShared.dll
Syntax
[DefaultElementClass(ElementType.ColShape)]
public class CollisionShape : PhysicalElement
Properties
|
Improve this Doc
View Source
ElementsWithin
Gets an array of all elements inside the collision shape
Declaration
public PhysicalElement[] ElementsWithin { get; }
Property Value
|
Improve this Doc
View Source
ShapeType
Gets the type of the collision shape
Declaration
public string ShapeType { get; }
Property Value
Methods
|
Improve this Doc
View Source
GetElementsWithin<T>()
Gets an array of all elements of a specific type inside the collision shape
Declaration
public T[] GetElementsWithin<T>()
where T : PhysicalElement
Returns
Type Parameters
|
Improve this Doc
View Source
IsElementWithin(PhysicalElement)
Checks whether a certain element is inside a collision shape
Declaration
public bool IsElementWithin(PhysicalElement element)
Parameters
Returns
|
Improve this Doc
View Source
IsInside(Vector3)
Checks whether a certain position is inside a collision shape
Declaration
public bool IsInside(Vector3 position)
Parameters
Type |
Name |
Description |
Vector3 |
position |
|
Returns
Events
|
Improve this Doc
View Source
OnHit
Declaration
public event CollisionShape.OnHitHandler OnHit
Event Type
|
Improve this Doc
View Source
OnLeave
Declaration
public event CollisionShape.OnLeaveHandler OnLeave
Event Type