Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  stutter move
#10
After some tests with angular velocity on a kinematic rigidbody, I think changing its angular velocity has no effect because the angular stays at 0 even when I try to modify it (I think for one frame it goes to the value and come back right after to 0).

Here with that code that changes the value once in Update loop:
Code:
if (angleVel != angleVelPrev)
        {
            angleVelPrev = angleVel;
            transform.GetComponent<Rigidbody>().angularVelocity = angleVel;
        }

https://youtu.be/BLsyd_ZUm9U

and here if I change the value at each frame, the value of the angular stays at the value I want but doesn't seam to affect the fluid.
Code:
transform.GetComponent<Rigidbody>().angularVelocity = angleVel;

https://youtu.be/-W3yNZI5dGA

One sure thing is that the fluid doesn't react to any angular velocity I'm trying to input (even 0,0,1000) when rigidbody is Kinematic.


In the next video, I'm modifying the angular velocity of the rigidbody with Is kinematic unchecked. As you could see, the fluid looks a bit behind the container but at least there is no stutter bug.

https://youtu.be/wqhsv4SavNY

In the last video, I'm modifying the rotation at fixedUpdate rate and the stutter problem is still there, maybe less present, hard to say.

https://youtu.be/SARTH-0lV7k

So, I'm still struggling to deal with this problem. The ideal would be to control the orientation of the container with angular velocity but it's not an easy problem.
Reply


Messages In This Thread
stutter move - by julienrobert - 22-09-2020, 03:29 AM
RE: stutter move - by josemendez - 22-09-2020, 07:12 AM
RE: stutter move - by julienrobert - 22-09-2020, 01:01 PM
RE: stutter move - by josemendez - 22-09-2020, 01:06 PM
RE: stutter move - by julienrobert - 22-09-2020, 02:06 PM
RE: stutter move - by josemendez - 22-09-2020, 02:12 PM
RE: stutter move - by julienrobert - 22-09-2020, 02:57 PM
RE: stutter move - by josemendez - 22-09-2020, 03:03 PM
RE: stutter move - by julienrobert - 22-09-2020, 03:11 PM
RE: stutter move - by julienrobert - 23-09-2020, 02:20 PM
RE: stutter move - by josemendez - 23-09-2020, 02:52 PM
RE: stutter move - by julienrobert - 23-09-2020, 03:18 PM
RE: stutter move - by josemendez - 23-09-2020, 03:23 PM