API ReferenceSandbox.Physics
PhysicsPointclass
Used to describe a point on a physics body. This is used for things like joints where you want to pass in just a body, or sometimes you want to pass in a body with a specific location and rotation to attach to.
object→PhysicsPoint
Constructors1
Showing 1 constructors
public PhysicsPoint(Sandbox.PhysicsBody body, System.Nullable`1<Vector3> localPosition = null, System.Nullable`1<Rotation> localRotation = null)
| Parameter | Type | Description |
|---|---|---|
| body | PhysicsBody | — |
| localPosition = null | Nullable<Vector3> | — |
| localRotation = null | Nullable<Rotation> | — |
No results match this filter.
Methods2
Showing 2 methods
public static Sandbox.Physics.PhysicsPoint Local(Sandbox.PhysicsBody body, System.Nullable`1<Vector3> localPosition = null, System.Nullable`1<Rotation> localRotation = null)
| Parameter | Type | Description |
|---|---|---|
| body | PhysicsBody | — |
| localPosition = null | Nullable<Vector3> | — |
| localRotation = null | Nullable<Rotation> | — |
public static Sandbox.Physics.PhysicsPoint World(Sandbox.PhysicsBody body, System.Nullable`1<Vector3> worldPosition = null, System.Nullable`1<Rotation> worldRotation = null)
| Parameter | Type | Description |
|---|---|---|
| body | PhysicsBody | — |
| worldPosition = null | Nullable<Vector3> | — |
| worldRotation = null | Nullable<Rotation> | — |
No results match this filter.
Properties2
Showing 2 properties
public Transform Sandbox.Physics.PhysicsPoint.LocalTransform { get; set; }
A transform relative to `Sandbox.Physics.PhysicsPoint.Body`, containing `Sandbox.Physics.PhysicsPoint.LocalPosition` and `Sandbox.Physics.PhysicsPoint.LocalRotation` with scale of 1.
public Transform Sandbox.Physics.PhysicsPoint.Transform { get; set; }
Transform of this point in world space.
No results match this filter.