Class PhysicsElement<TDescription, THandle>
Inheritance
PhysicsElement<TDescription, THandle>
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
|
Edit this page
View Source
positionOffset
Declaration
protected Vector3 positionOffset
Field Value
|
Edit this page
View Source
positionUpdateLock
Declaration
protected object positionUpdateLock
Field Value
|
Edit this page
View Source
rotationOffset
Declaration
protected Vector3 rotationOffset
Field Value
|
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
|
Edit this page
View Source
Position
Declaration
protected virtual Vector3 Position { get; set; }
Property Value
|
Edit this page
View Source
Rotation
Declaration
protected virtual Quaternion Rotation { get; set; }
Property Value
Methods
|
Edit this page
View Source
CoupleWith(Element, Vector3?, Vector3?)
Declaration
public void CoupleWith(Element element, Vector3? positionOffset = null, Vector3? rotationOffset = null)
Parameters
|
Edit this page
View Source
Decouple()
Declaration
|
Edit this page
View Source
HandleCoupledElementPositionUpdate(Element, ElementChangedEventArgs<Vector3>)
Declaration
protected virtual void HandleCoupledElementPositionUpdate(Element sender, ElementChangedEventArgs<Vector3> args)
Parameters
|
Edit this page
View Source
HandleCoupledElementRotationUpdate(Element, ElementChangedEventArgs<Vector3>)
Declaration
protected virtual void HandleCoupledElementRotationUpdate(Element sender, ElementChangedEventArgs<Vector3> args)
Parameters