API ReferenceSandbox.Physics
public sealed struct Sandbox.Physics.PhysicsPoint
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.
Constructors
Showing 1 constructors
public PhysicsPoint(Sandbox.PhysicsBody body, System.Nullable`1<Vector3> localPosition = null, System.Nullable`1<Rotation> localRotation = null)
Parameters
localPosition: Default: nulllocalRotation: Default: null
No results match this filter.
Methods
Showing 2 methods
public static Sandbox.Physics.PhysicsPoint Local(Sandbox.PhysicsBody body, System.Nullable`1<Vector3> localPosition = null, System.Nullable`1<Rotation> localRotation = null)
Parameters
localPosition: Default: nulllocalRotation: Default: null
public static Sandbox.Physics.PhysicsPoint World(Sandbox.PhysicsBody body, System.Nullable`1<Vector3> worldPosition = null, System.Nullable`1<Rotation> worldRotation = null)
Parameters
worldPosition: Default: nullworldRotation: Default: null
No results match this filter.
Properties
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.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox.Physics |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.Physics.PhysicsPoint |