Skip to content

格式

typescript
Mathf.SmoothDampAngle(source, target, velocity, smooth_time, max_speed, delta_time)

所属类: Mathf

描述

实现角度的平滑过渡。

参数

参数名类型描述
sourcenumber当前角度值
targetnumber目标角度值
velocitynumber当前角速度
smooth_timenumber平滑时间
max_speednumber最大角速度
delta_timenumber时间步长

返回值

类型描述
number平滑过渡后的新角度值

代码示例