Show / Hide Table of Contents

Class PhysicsElement<TDescription, THandle>

Inheritance
object
PhysicsElement<TDescription, THandle>
DynamicBodyPhysicsElement
KinematicBodyPhysicsElement
StaticPhysicsElement
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: SlipeServer.Physics.Entities
Assembly: SlipeServer.Physics.dll
Syntax
public class PhysicsElement<TDescription, THandle>
Type Parameters
Name Description
TDescription
THandle

Constructors

| Edit this page View Source

PhysicsElement(THandle, TDescription, PhysicsWorld, Simulation)

Declaration
public PhysicsElement(THandle handle, TDescription description, PhysicsWorld physicsWorld, Simulation simulation)
Parameters
Type Name Description
THandle handle
TDescription description
PhysicsWorld physicsWorld
Simulation simulation

Fields

| Edit this page View Source

physicsWorld

Declaration
protected readonly PhysicsWorld physicsWorld
Field Value
Type Description
PhysicsWorld
| Edit this page View Source

positionOffset

Declaration
protected Vector3 positionOffset
Field Value
Type Description
Vector3
| Edit this page View Source

positionUpdateLock

Declaration
protected object positionUpdateLock
Field Value
Type Description
object
| Edit this page View Source

rotationOffset

Declaration
protected Vector3 rotationOffset
Field Value
Type Description
Vector3
| Edit this page View Source

simulation

Declaration
protected readonly Simulation simulation
Field Value
Type Description
Simulation

Properties

| Edit this page View Source

CoupledElement

Declaration
public Element? CoupledElement { get; }
Property Value
Type Description
Element
| Edit this page View Source

Position

Declaration
protected virtual Vector3 Position { get; set; }
Property Value
Type Description
Vector3
| Edit this page View Source

Rotation

Declaration
protected virtual Quaternion Rotation { get; set; }
Property Value
Type Description
Quaternion

Methods

| Edit this page View Source

CoupleWith(Element, Vector3?, Vector3?)

Declaration
public void CoupleWith(Element element, Vector3? positionOffset = null, Vector3? rotationOffset = null)
Parameters
Type Name Description
Element element
Vector3? positionOffset
Vector3? rotationOffset
| Edit this page View Source

Decouple()

Declaration
public void Decouple()
| Edit this page View Source

HandleCoupledElementPositionUpdate(Element, ElementChangedEventArgs<Vector3>)

Declaration
protected virtual void HandleCoupledElementPositionUpdate(Element sender, ElementChangedEventArgs<Vector3> args)
Parameters
Type Name Description
Element sender
ElementChangedEventArgs<Vector3> args
| Edit this page View Source

HandleCoupledElementRotationUpdate(Element, ElementChangedEventArgs<Vector3>)

Declaration
protected virtual void HandleCoupledElementRotationUpdate(Element sender, ElementChangedEventArgs<Vector3> args)
Parameters
Type Name Description
Element sender
ElementChangedEventArgs<Vector3> args
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX