🔄Angle

Angle metatable

Fields

Name
Type
Description

pitch

number

yaw

number

roll

number

Angle(pitch [?]: number, yaw [?]: number, roll [?]: number): Angle

Name
Type
Description

pitch [?]

number

(default: 0.0)

yaw [?]

number

(default: 0.0)

roll [?]

number

(default: 0.0)

Create a new Angle.


:__tostring(): string


:GetForward(): Vector

Returns the forward vector from a given Angle.


:GetVectors(): Vector, Vector, Vector

Returns the forward, right and up.


:GetYaw(): number

Returns the yaw. The same as Angle.yaw.


:GetRoll(): number

Returns the roll. The same as Angle.roll.


:GetPitch(): number

Returns the pitch. The same as Angle.pitch.


:SetYaw(value: number): nil

Name
Type
Description

value

number

Sets the yaw. The same as Angle.yaw = value.


:SetRoll(value: number): nil

Name
Type
Description

value

number

Sets the roll. The same as Angle.roll = value.


:SetPitch(value: number): nil

Name
Type
Description

value

number

Sets the pitch. The same as Angle.pitch = value.

Last updated