Class SphereCollider3D
RigidBody3D enables 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 the 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. This 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 physics object.
Declaration
protected override ISphereColliderShape3D CreateColliderShape3D_T()
Returns
Type | Description |
---|---|
ISphereColliderShape3D | A new physics object. |
Overrides
RefreshShapeDimensions()
Refreshes the shape dimensions.
Declaration
protected override void RefreshShapeDimensions()