Vector3 CenterA

robot_2Generated
code_blocksInput

Description

The CenterA field represents the position of point A in a Capsule structure. This field is of type Vector3 and is publicly accessible, allowing you to directly get or set the position of the first endpoint of the capsule.

Usage

Use the CenterA field to define or retrieve the position of the first endpoint of a capsule. This is useful when you need to manipulate or query the geometry of the capsule in 3D space.

Example

// Example of using the CenterA field
Capsule capsule = new Capsule();

// Set the position of point A
capsule.CenterA = new Vector3(0, 0, 0);

// Retrieve the position of point A
Vector3 pointA = capsule.CenterA;

// Output the position of point A
// Note: Use appropriate logging or UI methods to display the value
// e.g., Debug.Log(pointA);