Code Monkey home page Code Monkey logo

Comments (9)

Demigiant avatar Demigiant commented on August 20, 2024 6

Damn Quaternions! Sorry I skipped this for so long, but here you go :P

P.S. If you're using DOTween Pro DON'T GET THIS! This new version also contains a new From overload that allows to directly set a From value, and the current Pro version doesn't have that implemented yet. If that's your case within the weekend I'll push the Pro on the Asset Store :P

from dotween.

DmitriyYukhanov avatar DmitriyYukhanov commented on August 20, 2024 5

Thank you a lot Daniele! ^^
You rock, and do it fast, as always (I know it's your clones hehe)!

from dotween.

DmitriyYukhanov avatar DmitriyYukhanov commented on August 20, 2024 2

Thanks, Daniele! No hurry here, I prefer to give you more time to better train your clones instead! =D

from dotween.

MattRix avatar MattRix commented on August 20, 2024 1

Yeah I've noticed this issue as well. I believe it's because DORotateQuaternion is easing all of the quaternion components (xyzw), which isn't the correct way to tween a quaternion rotation. It should use Quaternion.Slerp instead.

from dotween.

DmitriyYukhanov avatar DmitriyYukhanov commented on August 20, 2024 1

@Demigiant we need this!! =D

I'm too dumb and made a such workaround:

DOVirtual.Float(0, 1, animationDuration, OnRotate);
private void OnRotate(float value)
{
	transform.localRotation = Quaternion.Slerp(sourceRotation, targetRotation, value);
}

from dotween.

slacker-jake avatar slacker-jake commented on August 20, 2024

I've noticed this too. IS this likely to get fixed anytime soon?

from dotween.

Xeoneid avatar Xeoneid commented on August 20, 2024

Same here, has anyone found a workaround?

from dotween.

Xeoneid avatar Xeoneid commented on August 20, 2024

I've working on it. Seems that DORotate uses the shortest way

from dotween.

Demigiant avatar Demigiant commented on August 20, 2024

I wouldn't say "fast" in this case, I'll have to train my clones better :D

P.S. Dmitriy if you want a DOTween Pro build on the fly obviously you can just ping me via mail or on twitter ^_^

from dotween.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.