The Point2
property represents a specific point on the second physics body (Body2
) to which this joint is attached. It is of type PhysicsPoint
and is used to define the exact location on the second body where the joint is connected.
The Point2
property represents a specific point on the second physics body (Body2
) to which this joint is attached. It is of type PhysicsPoint
and is used to define the exact location on the second body where the joint is connected.
Use the Point2
property to get or set the attachment point on the second physics body involved in the joint. This is useful when you need to specify or modify the exact point of connection for the joint on Body2
.
// Example of accessing the Point2 property PhysicsJoint joint = new PhysicsJoint(); PhysicsPoint point = joint.Point2; // Set a new point joint.Point2 = new PhysicsPoint(new Vector3(1.0f, 0.0f, 0.0f));