Table of Contents

Class CharacterMover

Namespace
PopcorningGuineaPig.Engine.Physics
Assembly
PopcorningGuineaPig.Engine.dll

Geometric capsule. Not a rigid body — the game owns velocity and calls Move(CharacterMover, Vector3). Position is the feet.

public sealed class CharacterMover
Inheritance
CharacterMover
Inherited Members

Constructors

CharacterMover(Vector3, float, float)

public CharacterMover(Vector3 feet, float radius = 0.35, float height = 1.8)

Parameters

feet Vector3
radius float
height float

Fields

Height

Total height including hemispheres. Must be at least 2 × radius.

public float Height

Field Value

float

Position

public Vector3 Position

Field Value

Vector3

Radius

public float Radius

Field Value

float

StepHeight

Max lip the capsule will step onto without a jump. Quake is 18 units ≈ 0.56 m.

public float StepHeight

Field Value

float

Velocity

public Vector3 Velocity

Field Value

Vector3