Basiccharactercontroller

BasicCharacterController class

A controller class that can be used to control kinematic rigid bodies. This is a convenient class that wraps the Rapier's Character controller (opens in a new tab) class.

Signature:

export declare class BasicCharacterController 

Constructors

Constructor

Modifiers

Description

(constructor)(opts)

Constructs a new instance of the BasicCharacterController class

Properties

Property

Modifiers

Type

Description

_firstFrame

boolean

_logs

any[]

disableEvents

boolean

Methods

Method

Modifiers

Description

_logVec3(v)

_updateCollisionState(collider, playerCollider, collision)

_updateIntersectionState(collider, playerCollider)

castCallback(collider, now, collision, delta, playerCollider)

castSensors(rigidbody, rpos, collider)

update(object, velocity, dt, seqId)