跳转到内容

approachVelocity

此内容尚不支持你的语言。

approachVelocity(current, target, acceleration, deceleration, dt): object

Defined in: gameplay/ThirdPersonController.ts:132

Move a horizontal velocity toward what was asked for. Accelerating and stopping are separate rates because a character that coasts to a halt as slowly as it gets going feels like it is on ice.

number

number

number

number

number

number

number

object

x: number

z: number