2
0

QuaternionTween.lua 515 B

12345678910111213141516171819202122232425262728
  1. require "Polycode/Tween"
  2. class "QuaternionTween" (Tween)
  3. function QuaternionTween:QuaternionTween(...)
  4. for k,v in pairs(arg) do
  5. if type(v) == "table" then
  6. if v.__ptr ~= nil then
  7. arg[k] = v.__ptr
  8. end
  9. end
  10. end
  11. if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
  12. self.__ptr = Polycore.QuaternionTween(unpack(arg))
  13. Polycore.__ptr_lookup[self.__ptr] = self
  14. end
  15. end
  16. function QuaternionTween:updateCustomTween()
  17. local retVal = Polycore.QuaternionTween_updateCustomTween(self.__ptr)
  18. end