Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  stutter move
#2
(22-09-2020, 03:29 AM)julienrobert Wrote: Hello

I think I have a conflict between the movement of my container and the fluidĀ inside because I'm getting a kind of stutter when I move the container. Please see video.
https://youtu.be/e_W4O8sMdEk

How can I solve this? Do I need to move the container using fixedUpdate? or something like that?

Hi,

Even if you move your container in FixedUpdate() (which is the obvious thing to do, as it's interacting with physics), you'd still get some stuttering as the physics engine can only react to movement after it has happened.

The ideal solution is to make the container a rigidbody and use torques to rotate it. This way, the collision detection system can work with the container's angular velocity to predict its movement and act accordingly.
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