Comments (6)
Thanks amugana for patching it. Before applying the patch though, could you
send me an example of a case where HOTween fails to apply the shortest
rotation? I can't replicate it here, and I want to be sure we have the same
thing in mind :)
Original comment by [email protected]
on 24 Jul 2012 at 9:32
- Changed state: DataNeeded
- Added labels: Type-Defect
- Removed labels: Type-Enhancement
from hotween.
Original comment by [email protected]
on 24 Jul 2012 at 9:32
- Added labels: Priority-High
from hotween.
i just checked the case.
When relative is 'on' rotation from '0' to '270' runs whole 270 degree
HOTween.To( transform, 0.5f, new TweenParms().Prop("localRotation",
Quaternion.Euler(0,0,-90), true));
Original comment by [email protected]
on 24 Jul 2012 at 1:56
from hotween.
I see. Then everything is correct, actually. Quaternions can't be negative, so
converting 0,0,-90 to a Quaternion actually creates a Quaternion of 0,0,270
(you can see it if you Log Quaternion.Euler(0,0,-90).eulerAngles), which in
case of a relative rotation tween, correctly rotates the object by 270 degrees.
You can instead directly use Vector3 values for rotation tweens, like:
HOTween.To( transform, 0.5f, new TweenParms().Prop("localRotation", new
Vector3(0,0,-90), true));
which will correctly rotate your object by 90 degrees.
Original comment by [email protected]
on 24 Jul 2012 at 7:35
- Changed state: Invalid
from hotween.
oh my. didn't know that. thanks :)
Original comment by [email protected]
on 24 Jul 2012 at 11:15
from hotween.
Thanks to you. Even if in the end we found this issue was not an issue, I
appreciated enormously that you included a patch :)
Original comment by [email protected]
on 25 Jul 2012 at 9:01
from hotween.
Related Issues (20)
- Add loop delay for simple Tweeners
- Fails Supported API test for Windows Store HOT 1
- Visual Editor: wrong DLL referenced with HOTweenMicro and Windows 8 Store HOT 3
- Please add "_TintColor" to material color tweening HOT 4
- Null Reference Exception HOT 2
- PlugVector3Path OrientToPath2D HOT 12
- ABSTweenPlugin is allocating 20B each frame (base on Unity Profiler). Maybe, I have a way to avoid this. HOT 4
- Tween inside sequence have wrong from value HOT 1
- Building for Windows Store 8.1 with Micro produces many errors HOT 39
- HOTween OnComplete after the object is destroyed HOT 3
- Bug identified as #75 closed today has been closed but not fixed. HOT 1
- Does not show Visual Editor HOT 3
- Fail when running on Windows Store App HOT 30
- HoTween not moving objects after reloading the scene from another scene. HOT 2
- SpeedBased tween has innacurate timing HOT 5
- SetValue cause garbage allocation every frame HOT 4
- HOTween.TimeScaleIndependentUpdate is allocating 9B every frame HOT 1
- A bug about HOTween Reverse HOT 8
- Tweens playing automatically, even when 'Auto' turned off HOT 5
- Animate multiple properties with the same Tweener HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hotween.