The LocalPosition
field represents the position offset from the physics body's position. It is a Vector3
value that specifies the local position of the PhysicsPoint
relative to the attached PhysicsBody
.
The LocalPosition
field represents the position offset from the physics body's position. It is a Vector3
value that specifies the local position of the PhysicsPoint
relative to the attached PhysicsBody
.
Use the LocalPosition
field to define or retrieve the position offset of a PhysicsPoint
from its associated PhysicsBody
. This is particularly useful when you need to specify a local position for joints or other physics interactions that require a specific attachment point on the body.
// Example of setting the LocalPosition of a PhysicsPoint PhysicsBody myBody = new PhysicsBody(); PhysicsPoint myPoint = new PhysicsPoint(); // Set the local position offset myPoint.LocalPosition = new Vector3(1.0f, 0.0f, 0.0f); // Now myPoint is offset by (1, 0, 0) from myBody's position