s&box docs
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: null
  • localRotation: Default: null

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: null
  • localRotation: 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: null
  • worldRotation: Default: null

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.

Metadata

FieldValue
NamespaceSandbox.Physics
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.Physics.PhysicsPoint

On this page