Show / Hide Table of Contents

Class CollisionShape

Base class for collision shapes

Inheritance
Object
Element
PhysicalElement
CollisionShape
CollisionCircle
CollisionCuboid
CollisionRectangle
CollisionSphere
CollisionTube
Inherited Members
PhysicalElement.Dimension
PhysicalElement.Interior
PhysicalElement.Frozen
PhysicalElement.Alpha
PhysicalElement.Health
PhysicalElement.Model
PhysicalElement.CollisionShape
PhysicalElement.CollisionsEnabled
PhysicalElement.LowLODElement
PhysicalElement.DoubleSided
PhysicalElement.IsInWater
PhysicalElement.IsLowLOD
PhysicalElement.Position
PhysicalElement.Rotation
PhysicalElement.QuaternionRotation
PhysicalElement.Matrix
PhysicalElement.ForwardVector
PhysicalElement.RightVector
PhysicalElement.UpVector
PhysicalElement.Velocity
PhysicalElement.AngularVelocity
PhysicalElement.AngularQuaternionVelocity
PhysicalElement.ToAttached
PhysicalElement.IsAttached
PhysicalElement.IsWithinCollisionShape(CollisionShape)
PhysicalElement.IsWithinMarker(SharedMarker)
PhysicalElement.AttachTo(PhysicalElement, Matrix4x4)
PhysicalElement.AttachTo(PhysicalElement, Vector3, Vector3)
PhysicalElement.AttachTo(PhysicalElement, Vector3, Quaternion)
PhysicalElement.AttachTo(PhysicalElement)
PhysicalElement.Detach()
PhysicalElement.Offset
PhysicalElement.GetWithinRange(Vector3, Single, String)
PhysicalElement.FaceElement(PhysicalElement)
PhysicalElement.OnClicked
PhysicalElement.OnModelChange
PhysicalElement.OnStartSync
PhysicalElement.OnStopSync
PhysicalElement.OnStreamIn
PhysicalElement.OnStreamOut
Element.element
Element.Root
Element.MTAElement
Element.Type
Element.ID
Element.Exists
Element.ChildCount
Element.Parent
Element.CallPropagationEnabled
Element.SetData(String, Object, Boolean)
Element.GetData(String, Boolean)
Element.TryGetData(String, Object, Boolean)
Element.GetData<T>(String, Boolean)
Element.TryGetData<T>(String, T, Boolean)
Element.Destroy()
Element.GetChild(Int32)
Element.GetChildren(String)
Element.GetByID(String, Int32)
Element.ListenForEvent(String, Boolean, String)
Element.HandleEvent(String, MtaElement, Object, Object, Object, Object, Object, Object, Object, Object)
Element.OnDestroy
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Shared.CollisionShapes
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
Type Description
PhysicalElement[]
| Improve this Doc View Source

ShapeType

Gets the type of the collision shape

Declaration
public string ShapeType { get; }
Property Value
Type Description
String

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 Description
T[]
Type Parameters
Name Description
T
| Improve this Doc View Source

IsElementWithin(PhysicalElement)

Checks whether a certain element is inside a collision shape

Declaration
public bool IsElementWithin(PhysicalElement element)
Parameters
Type Name Description
PhysicalElement element
Returns
Type Description
Boolean
| 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
Type Description
Boolean

Events

| Improve this Doc View Source

OnHit

Declaration
public event CollisionShape.OnHitHandler OnHit
Event Type
Type Description
CollisionShape.OnHitHandler
| Improve this Doc View Source

OnLeave

Declaration
public event CollisionShape.OnLeaveHandler OnLeave
Event Type
Type Description
CollisionShape.OnLeaveHandler
  • Improve this Doc
  • View Source
Back to top Generated by DocFX