#Sliding problems

1 messages · Page 1 of 1 (latest)

flint valve
#

So i have a movement script that allows me to slide or slide-boost at least, and theres a problem with it on when it comes to walls. As you can see gravity isnt preserved at all and makes me just stick to the wall, i'm not sure on how to fix this honestly. Any ideas?

#

if you ask if it's skidded or not, i've been having this problem to the point i got on a real low and tried to have AI Fix it for me.

#

I couldnt find any sources of how to fix it

#

or any good sources for sliding.

tardy topaz
#

to check if player's so close to wall

flint valve
# tardy topaz to check if player's so close to wall

Not sure how that would honestly help if im not trying to kill the horizontal velocity at all, i still kindof want to preserve the players momentum or velocity but wont make the players Stick to the wall like glue

#

i think i found the solution nvm

tardy topaz
#

what are u trying to do tho, i dont get it

timber palm
#

hi

#

ive had this problem before

#

i think

flint valve
# tardy topaz what are u trying to do tho, i dont get it

Basically, i want the sliding to not make the players stick to the wall due to the horizontal linear velocity pushing them agaisnt the wall, but i dont want to kill that velocity, instead im just trying to not make the players stay glued to the wall.

timber palm
#

hgave you tried making the max force of y 0

flint valve
#

maxforce?

timber palm
#

I forgot the property name

#

its something like max force

#

try it

flint valve
timber palm
#

i havent checked the script

#

ur using assem velocity?

#

i thought you were using the linear velocity instance

flint valve
#

oh

#

💔 i guess its due to assemblylinearvelocity

#

ill try to switch it to linearvelocity to see any differences , i thought it had the same properties as LinearVelocity

timber palm
#

I think it's like

#

the velocity is overpowering gravity

#

smth like that

flint valve
#

Okay so, i found a temporary solution

#

i decreased the MaxAxesForce by 200 (allowing me to keep gravity) and preserve the previous velocity if hitting a wall

#

once a player gets out of the wall the previous velocity is then applied.