Skip to content

Commit

Permalink
Fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
StanzillaManticore committed Nov 18, 2021
1 parent 87f6c14 commit 4374103
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions NewSniperAlley/Data/Scripts/HangingWireAnimator.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ local END_ROTATION = script:GetCustomProperty("EndRotation")
-- <Rotation> LerpRotation (Rotation, Rotation, number)
-- Lerps Rotation properties by using Quaternions
function LerpRotation(from, to, t)
local fromQuat = Quaternion.New(from)
local toQuat = Quaternion.New(to)
return Rotation.New(Quaternion.Slerp(fromQuat, toQuat, t))
local fromQuat = Quaternion.New(from)
local toQuat = Quaternion.New(to)
return Rotation.New(Quaternion.Slerp(fromQuat, toQuat, t))
end

function Tick(deltaTime)
OBJ:SetRotation(Rotation) LerpRotation(START_VALUE_FROM, END_VALUE, t))
OBJ:SetRotation(Rotation)
LerpRotation(START_VALUE_FROM, END_VALUE, t)
end

0 comments on commit 4374103

Please sign in to comment.