Mathf.DeltaAngle(number current, number target)
Calculates the shortest difference between two given angles given in degrees.
Parameters:
Name | Type | Description |
---|---|---|
current | number | current |
target | number | target |
Returns:
type | Description |
---|---|
number | shortest difference between two given angles given in degrees. |
Usage
---@type number
local current;
---@type number
local target;
local val0 = Mathf:DeltaAngle(current, target)