PhysicsPoint Point2 { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

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.

Usage

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

// 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));