Taos API Reference
    Preparing search index...

    Class CharacterController

    Index

    Constructors

    Properties

    velocity: Vec3 = ...

    Desired velocity (world units/sec). Set horizontal each frame; move integrates gravity into Y and resolves collisions, then writes the result back here.

    gravity: number

    Gravity magnitude applied along -Y each move.

    Accessors

    Methods

    • Advances the character by dt: integrates gravity into velocity.y, sweeps the capsule through the world (sliding, stairs, floor-stick) and writes the collision-resolved position and velocity back. Set the desired horizontal velocity (and any jump on velocity.y) before calling.

      Parameters

      • dt: number

      Returns void