struct PhysicsPoint

book_4_sparkGenerated
code_blocksInput

Description

The PhysicsPoint struct in the Sandbox.Physics namespace is used to describe a point on a physics body. It is particularly useful for scenarios such as joints where you need to specify a body, or a body with a specific location and rotation for attachment.

Members

Static Methods

Member NameSummary
LocalCreates a PhysicsPoint relative to a given PhysicsBody with optional local position and rotation.
WorldCreates a PhysicsPoint relative to a given PhysicsBody with optional world position and rotation.

Instance Properties

Member NameSummary
LocalTransformA transform relative to the Body, containing LocalPosition and LocalRotation with a scale of 1.
TransformTransform of this point in world space.

Instance Fields

Member NameSummary
BodyThe physics body this point is attached to.
LocalPositionPosition offset from the body's position.
LocalRotationRotation offset from the body's position.