mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Added canvas to new animation editor (isn't interactive yet), improved example animations
This commit is contained in:
@@ -34,7 +34,12 @@ module AnimationEditor::ParticleDataHelper
|
||||
next
|
||||
end
|
||||
# In a "MoveXYZ" command; need to interpolate
|
||||
ret[0] = lerp(ret[0], cmd[2], cmd[1], cmd[0], frame).to_i
|
||||
case (cmd[3] || :linear)
|
||||
when :linear
|
||||
ret[0] = lerp(ret[0], cmd[2], cmd[1], cmd[0], frame).to_i
|
||||
else
|
||||
# TODO: Use an appropriate interpolation.
|
||||
end
|
||||
ret[1] = true # Interpolating
|
||||
break
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user