PhysicsPoint Point1 { get; set; }

robot_2Generated
code_blocksInput

Description

The Point1 property represents a specific point on the first body (Body1) to which the physics joint is attached. This point is defined using the PhysicsPoint type, which encapsulates the position and orientation of the attachment point in the physics simulation.

Usage

Use the Point1 property to access or modify the attachment point on the first body of a PhysicsJoint. This can be useful when you need to adjust the joint's position or orientation relative to the body it is attached to.

Example

// Example of accessing the Point1 property
PhysicsJoint joint = new PhysicsJoint();
PhysicsPoint point1 = joint.Point1;

// Modify the point if needed
point1.Position = new Vector3(1.0f, 0.0f, 0.0f);
point1.Orientation = Quaternion.Identity;

// Assign the modified point back to the joint
joint.Point1 = point1;