Class SphereCollider3D
RigidBody3D enable your entities to act under the control of physics. The Rigidbody can receive forces and torque to make your objects move in a realistic way. Any entity must contain a Rigidbody to be influenced by gravity, act under added forces or interact with other objects through physics engine.
Inheritance
SphereCollider3D
Implements
Inherited Members
Namespace: Evergine.Framework.Physics3D
Assembly: Evergine.Framework.dll
Syntax
public class SphereCollider3D : Collider3D<ISphereColliderShape3D>, IDependencyObject
Constructors
SphereCollider3D()
Initializes a new instance of the SphereCollider3D class.
Declaration
public SphereCollider3D()
Properties
EffectiveRadius
Gets the effective radius. It includes the model bounding box offset if it is available.
Declaration
public float EffectiveRadius { get; }
Property Value
Type | Description |
---|---|
float |
Radius
Gets or sets the radius.
Declaration
public float Radius { get; set; }
Property Value
Type | Description |
---|---|
float |
Methods
CreateColliderShape3D_T()
Creates the physic object.
Declaration
protected override ISphereColliderShape3D CreateColliderShape3D_T()
Returns
Type | Description |
---|---|
ISphereColliderShape3D | A new physics object. |
Overrides
RefreshShapeDimensions()
Refresh the shape dimensions.
Declaration
protected override void RefreshShapeDimensions()