Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- INDIVIDUAL ANIMATION
- a = AnimX("linear", Vector(0), Vector(10,0,0), 1, 0, false)
- a.onUpdate = function(v, self)
- print(v, self.style)
- end)
- -- MULTIVARIABLE ANIMATION
- a = AnimX("linear", {0, Vector(0), Angle(0)}, {100, Vector(-10), Angle(90)}, 1, 5, true)
- -- PROPETY ANIMATION
- obj = {
- x = 0,
- y = 100,
- }
- a = AnimX("linear", obj, {x = 0, y = 100}, {x = 50, y = 200}, 1, 0, false)
- -- QUEUE OF ANIMATIONS
- a = AnimX(0, false,
- {
- {"linear", 0, 100, 1, 0, false},
- {"linear", Vector(0), Vector(10,0,0), 1, 0, false},
- })
- -- ENTITY FUNCTIONS
- AnimX.moveTo(ent, Vector(100,0,0), "linear", 5, true, function() print("done!") end)) -- use physobj for ents / setvel for holos
- AnimX.moveToLocal(ent1, ent2, Vector(40,0,0), "linear", 4, true)
- AnimX.rotateTo(ent, Angle(45,90,0), "linear", 1, true) -- physobj / setangvel
- AnimX.rotateToLocal(ent1, ent2, Angle(45,90,0), "linear", 1, true)
- AnimX.colorTo(ent, Color(255,0,0), "linear", 3, true) -- use HSV?
- AnimX.scaleTo(ent, Vector(2), "linear", 2) -- strictly for holos
- -- TRANSFORMS
- vector = AnimX.translate(Vector(0), Vector(100,0,0), "linear", 5, function() print("done") end))
- angle = AnimX.rotate(Angle(0), Vector(100,0,0), "linear", 5)
- -- MISC
- AnimX.lerp(ratio, v1, v2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement