MCPcopy Create free account
hub / github.com/esengine/esengine / createCharacterController

Method createCharacterController

packages/rapier2d/src/pipeline/world.ts:416–429  ·  view source on GitHub ↗

* Creates a new character controller. * * @param offset - The artificial gap added between the character’s chape and its environment.

(
        offset: number,
    )

Source from the content-addressed store, hash-verified

414 * @param offset - The artificial gap added between the character’s chape and its environment.
415 */
416 public createCharacterController(
417 offset: number,
418 ): KinematicCharacterController {
419 let controller = new KinematicCharacterController(
420 offset,
421 this.integrationParameters,
422 this.broadPhase,
423 this.narrowPhase,
424 this.bodies,
425 this.colliders,
426 );
427 this.characterControllers.add(controller);
428 return controller;
429 }
430
431 /**
432 * Removes a character controller from this world.

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected