MCPcopy Create free account
hub / github.com/galacean/engine / moveTo

Method moveTo

tests/src/core/physics/CharacterController.test.ts:79–81  ·  view source on GitHub ↗
(pos: Vector3, step: number = 2)

Source from the content-addressed store, hash-verified

77 }
78
79 moveTo(pos: Vector3, step: number = 2): void {
80 this.distancePerStep = pos.subtract(this.entity.transform.position).scale(1 / step);
81 }
82 }
83
84 beforeAll(async function () {

Callers 1

Calls 2

scaleMethod · 0.45
subtractMethod · 0.45

Tested by

no test coverage detected