#wall stuck
1 messages · Page 1 of 1 (latest)
show the inspector for the collider.
That is a 3D physic material.
Oh
my bad
if i set it to 0.1 it slides down about 2 pixels per second
Going by that logic...
IT WORKS
Thank you so much, i've been fighting with this for 3 days straight
I do very little 2D, so I'm not sure if a high-friction surface and a low-friction surface results in low friction or high friction
and been halting my team with it
You probably want some friction on the ground still
(unless you're already simulating friction by slowing the player down when they aren't holding a button down)
Ok another thing
If the low ground friction is an issue, then you'll want to create a low-friction wall material and a high-friction ground material
how do i make it so you can still wall jump?
or that if you hold it, for lets say 2 seconds you start sliding down
you could just set the player's y velocity to 0 for those 2 seconds
and you can still glue yourself to the wall for a moment before that
or you could change the friction on the player's physics material
both would work
i'd probably do the first one
Alright, how would i change the friction, it seems a bit more dynamic
make a new physics material 2D that's only used by the player
then just reference it in the player component and set its friction value
Alright, thank you
I'm not sure if you'll need low wall friction and low player friction to get sliding
or if high wall friction and low player friction will slide
i didnt set anything for the wall
ah, okay, so then it's the latter
How about making 2 materials it would change betwene?
like 1 for still and 1 for sliding?
what is the error?
i wonder what the default friction is on the defaultPhysicsMaterial
make the materials public so that we can see them
the point is to be able to see them in the inspector
and to check their values make sense
I would just configure everything that way
don't create new materials at runtime
Alright give me a moment
Wait a second, i should be changing the friction to 0 but to 1000 or sum
ok im dumb lol
i will rewrite it nicely as you said anyway
nah, pretty sure you just need things in the 0-1 range
well, now it's null...
you need to put something in it
create two physics materials and assign them
alright got it
Ok another problem, now its 100 constantly even when on ground, should i just if it out using "ground" and "JumpableWall" tags?
Ok i think i only broke it further
Wait, but do i really even need to do that?
I can live without it and just adjust the friction so its fine without the glue part
Now just 2 last question,
- Why can i double jump after jumping off a wall
- How do i prevent players from just jumping straight up while on a wall