Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VolumeController CrossRelativePosition Very Choppy Movement
#3
(06-05-2024, 12:46 PM)_Aka_ Wrote: Hi,

Does the problem happen even if there is no mouse movement?
    If yes, then try smoothing the input of the mouse.
    If no then does this issue happen if you set the Update setting of the controller to Late Update?
        If yes then does this problem happen even after increasing the resolution of the splines and generated meshes involved in your scene?

Please let me know of the answers for these questions.

Have a nice day

Hi,

Thank you for your response.

The problem happens also when there is no mouse movement. But I don't understand, why I should "try smoothing the input of the mouse " in case it happens if "even if there is no mouse movement".

Maybe I did not understand your response correctly.

I also tried 0 for the mouse input (instead of Input.GetAxis("Mouse X"))  but no change.

I also tried setting the Update setting of the controller to Late Update but again no change.

However, there's no problem with the Controller GameObject of your example scene.  I copied the "Controller" GameObject, complete with all children, from the 21_CGExtrusion scene to my scene, and the sideways movement is quite smooth Here's a video:



There is some slight choppiness, which is probably due to resolution, but it's so small that it's not really a problem.
I mean, I don't understand why the "Controller" with same code on same spline is OK and with my model it's not.

EDIT 1: I also increased resolution: In the Shape Extrusion module, in both the Path and Cross tabs, I set the Resolution to 100 (was 50), and the Angle Threshold to 5 (was 10). Also, in the Curvy Spline Advanced Settings I set Max Points Per Unit to 100 (was 10). I wasn't sure if setting the Resolution in the Shape Extrusion module would be enough, so I changed all the above, and I tested after each change. However, there was no change at all.

EDIT 2: I removed the Update() from my CarController, so there's no input or processing before assigning the CrossRelativePosition. The VolumeController is set for speed 60, and CrossRelativePosition 0 (Range -0.18 to 0.18). The problem is still there.

So, I concluded that the problem must be in the VolumeController settings. I compared my settings with the example Controller and voila! Direction and Up Damping were set to 0.15. So, I set these values to my VolumeController, and the problem was fixed!
Reply


Messages In This Thread
RE: VolumeController CrossRelativePosition Very Choppy Movement - by pako88 - 06-05-2024, 02:26 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Smile Simple splines movement shills 3 3,167 02-26-2025, 09:40 AM
Last Post: _Aka_
  Left-right movement, and spline follow shihaya 3 2,465 07-12-2024, 12:50 PM
Last Post: _Aka_
  Add noise to spline controller movement DekoGames 2 2,024 02-06-2024, 01:28 PM
Last Post: DekoGames
  Add VolumeController at runtime dmarqsp 3 2,262 12-16-2023, 12:12 PM
Last Post: _Aka_

Forum Jump: