The Sphere
property of the PhysicsShape
class provides access to the sphere properties if the shape is of a sphere type. This property is useful for retrieving specific attributes related to spherical shapes within the physics simulation.
The Sphere
property of the PhysicsShape
class provides access to the sphere properties if the shape is of a sphere type. This property is useful for retrieving specific attributes related to spherical shapes within the physics simulation.
To use the Sphere
property, ensure that the PhysicsShape
instance represents a sphere. You can then access the sphere-specific properties through this property.
// Example of accessing the Sphere property PhysicsShape shape = new PhysicsShape(); if (shape.IsSphereShape) { Sphere sphereProperties = shape.Sphere; // Use sphereProperties as needed }