Api Sandbox Physics PhysicsPoint
struct

PhysicsPoint

public sealed struct 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

PhysicsPoint(PhysicsBody body, Vector3? localPosition, Rotation? localRotation)

Properties

Name Type Description
LocalTransform Transform A transform relative to Body, containing LocalPosition and LocalRotation with scale of 1.
Transform Transform Transform of this point in world space.

Methods

static PhysicsPoint Local(PhysicsBody body, Vector3? localPosition = null, Rotation? localRotation = null)
static PhysicsPoint World(PhysicsBody body, Vector3? worldPosition = null, Rotation? worldRotation = null)

Fields

Name Type Description
Body PhysicsBody The physics body this point is attached to.
LocalPosition Vector3 Position offset from the body's position.
LocalRotation Rotation Rotation offset from the body's position.
Assembly: Sandbox.Engine Namespace: Sandbox.Physics Full Name: Sandbox.Physics.PhysicsPoint