Table of Contents

Class CapsuleColliderShape

Namespace
Stride.Physics
Assembly
Stride.Physics.dll
public class CapsuleColliderShape : ColliderShape, IDisposable
Inheritance
CapsuleColliderShape
Implements
Inherited Members
Extension Methods

Constructors

CapsuleColliderShape(bool, float, float, ShapeOrientation)

Initializes a new instance of the CapsuleColliderShape class.

public CapsuleColliderShape(bool is2D, float radius, float length, ShapeOrientation orientation)

Parameters

is2D bool

if set to true [is2 d].

radius float

The radius.

length float

The length of the capsule.

orientation ShapeOrientation

Up axis.

Fields

Length

public readonly float Length

Field Value

float

Orientation

public readonly ShapeOrientation Orientation

Field Value

ShapeOrientation

Radius

public readonly float Radius

Field Value

float

Properties

Scaling

Gets or sets the scaling. Make sure that you manually created and assigned an exclusive ColliderShape to the Collider otherwise since the engine shares shapes among many Colliders, all the colliders will be scaled. Please note that this scaling has no relation to the TransformComponent scaling.

public override Vector3 Scaling { get; set; }

Property Value

Vector3

The scaling.

Methods

CreateDebugPrimitive(GraphicsDevice)

public override MeshDraw CreateDebugPrimitive(GraphicsDevice device)

Parameters

device GraphicsDevice

Returns

MeshDraw