CapsuleColliderShape Class
Namespace: Stride.PhysicsAssembly: Stride.Physics.dll
Derived from CapsuleColliderShape:
public class CapsuleColliderShape : ColliderShape, IDisposable
Name | Description | |
---|---|---|
Constructors | ||
CapsuleColliderShape(Boolean, Single, Single, ShapeOrientation) | Initializes a new instance of the CapsuleColliderShape class. |
|
Fields | ||
Length | ||
Orientation | ||
Radius | ||
Properties | ||
Scaling | ||
Methods | ||
CreateDebugPrimitive(GraphicsDevice) |
Constructors
CapsuleColliderShape(Boolean, Single, Single, ShapeOrientation)
Initializes a new instance of the CapsuleColliderShape class.
public CapsuleColliderShape(bool is2D, float radius, float length, ShapeOrientation orientation)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | is2D | if set to |
System.Single | radius | The radius. |
System.Single | length | The length of the capsule. |
ShapeOrientation | orientation | Up axis. |
Fields
Length
public readonly float Length
Field Value
Type | Description |
---|---|
System.Single |
Orientation
public readonly ShapeOrientation Orientation
Field Value
Type | Description |
---|---|
ShapeOrientation |
Radius
public readonly float Radius
Field Value
Type | Description |
---|---|
System.Single |
Properties
Scaling
public override Vector3 Scaling { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
Overrides
| Improve this Doc View SourceMethods
CreateDebugPrimitive(GraphicsDevice)
public override MeshDraw CreateDebugPrimitive(GraphicsDevice device)
Parameters
Type | Name | Description |
---|---|---|
GraphicsDevice | device |
Returns
Type | Description |
---|---|
MeshDraw |