The End
property of the CapsuleCollider
class represents the top point of the capsule in 3D space. It is defined as a Vector3
, which specifies the position of this point relative to the object's local coordinate system.
The End
property of the CapsuleCollider
class represents the top point of the capsule in 3D space. It is defined as a Vector3
, which specifies the position of this point relative to the object's local coordinate system.
To set or get the top point of a capsule collider, use the End
property. This property is useful when you need to define or modify the shape and position of the capsule collider within a scene.
// Example of setting the End property of a CapsuleCollider CapsuleCollider capsuleCollider = new CapsuleCollider(); capsuleCollider.End = new Vector3(0, 1, 0); // Sets the top point of the capsule to (0, 1, 0)