Legacy Documentation: Version 2017.2 (Go to current version)
Rigidbody
Spring Joint
Other Versions

Sphere Collider

Switch to Scripting

The Sphere Collider is a basic sphere-shaped collision primitive.

Properties

Property: Function:
Is Trigger If enabled, this Collider is used for triggering events, and is ignored by the physics engine.
Material Reference to the Physics Material that determines how this Collider interacts with others.
Center The position of the Collider in the object’s local space.
Radius The size of the Collider.

Details

The collider can be resized via the Radius property but cannot be scaled along the three axes independently (ie, you can’t flatten the sphere into an ellipse). As well as the obvious use for spherical objects like tennis balls, etc, the sphere also works well for falling boulders and other objects that need to roll and tumble.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答