Custom character controller / LinearVelocity being buggy?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I’m using LinearVelocity to control a ball, which i attach a player onto

  2. What is the issue? Include screenshots / videos if possible!

The issue is the ball goes upward for no discernible reason.
It happens while the ball is being moved via LinearVelocity and when it stops being moved.
The reason it goes back down is because I apply gravity after the ball is not grounded.
I have managed to fix the issue while the ball is standing still by running this in RunService.Heartbeat:

CHARACTER.AssemblyLinearVelocity = Vector3.zero
CHARACTER.AssemblyAngularVelocity = Vector3.zero

However the issue remains and gets worse while the ball is moving at fast speeds.
I’ve heard LinearVelocity is buggy so maybe I can try setting AssemblyLinearVelocity directly or using a VectorForce possibly.

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I haven’t

Also yes I have checked for issues, the character’s collision is turned off and I have checked my movement code for bugs which you can see by the output being completely spammed also the label shows vertical velocity magnitude.

Thanks in advance.

Using AssemblyLinearVelocity and disabling the LinearVelocity Constraint seems to have removed the bug and made movement smoother. Yippe

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.