Demigiant / dotween

A Unity C# animation engine. HOTween v2
http://dotween.demigiant.com
Other
2.33k stars 348 forks source link

physiscs 2d #538

Open vvp3 opened 2 years ago

vvp3 commented 2 years ago

i noticed thay DOT wants kinematic effectors only works with dynamic

how can i make them work together ?

ty

Demigiant commented 2 years ago

Do you mean for moving objects around? The problem is that a dynamic object can't be moved via direct rigidbody.MovePosition methods, so it can't be moved on a precise path by DOTween

vvp3 commented 2 years ago

I want to use effectors so that i have a force on my 2D GO. Like I want to jump on a platform that is moving with dotween and have some pysiscs effects like springs. I will try do it with PUNCH but I dont have a clue for now how. My hierarachy is like this:

move DOT

scale_rot DOT player

I want my player to jump on the platform and have a buoyancy effect on jumping mid or sides.

Alo, I put the player as a child so it moves with the platform ... with friction I am not able to stick it to a DOT GO. Is it possible though to have him stick to the platform while on it in a different way ?