The Point2
property represents a specific point on the second physics body (Body2
) to which this joint is attached. It is of type PhysicsPoint
, which defines the exact location on the 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
, which defines the exact location on the body where the joint is connected.
Use the Point2
property to get or set the attachment point on the second body of a PhysicsJoint
. This is useful when you need to specify or modify the exact point of connection for the joint on the second body.
// 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));