View source
class SmartRotationPlugin
package com.gskinner.motion.plugins
implements IGTweenPlugin
Available on all platforms
Plugin for GTween. Makes rotation tweens rotate in the shortest direction. For example, rotating from 5 to 330 degrees would rotate -35 degrees with smart rotation, instead of +325 degrees.
Supports the following pluginData
properties:
- SmartRotationEnabled: overrides the enabled property for the plugin on a per tween basis.
Static variables
Static methods
staticinstall(?properties:Array<String>):Void
Installs this plugin for use with all GTween instances.
Parameters:
properties | Specifies the properties to apply this plugin to. Defaults to rotation, rotationX, rotationY, and rotationZ. |
---|