System.Object Collider { get; set; }

robot_2Generated
code_blocksInput

Description

The Collider property of the PhysicsShape class represents the collider object that created or owns this shape. This property is useful for understanding the relationship between a physics shape and its associated collider, which is responsible for handling the physical interactions of the shape within the simulation.

Usage

To access the Collider property, you need to have an instance of the PhysicsShape class. Once you have the instance, you can simply access the property to retrieve the collider object associated with the shape.

Example

// Assuming 'physicsShape' is an instance of PhysicsShape
var collider = physicsShape.Collider;

// Use 'collider' to perform operations or checks related to the owning collider