Wall sliding

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
OneOrigiN
Prole
Posts: 7
Joined: Fri Jul 24, 2020 3:04 pm

Wall sliding

Post by OneOrigiN »

Hello everyone! I'm new to love2D, and I interested in wall sliding.
So, what I want:
wall sliding(please pay attention at pic. 1 and 3)
wall sliding(please pay attention at pic. 1 and 3)
asklove1.png (546.1 KiB) Viewed 5364 times
Yeah,googled didn't help me. I just found some examples in unity.
P.S sorry for my english.
MrFariator
Party member
Posts: 511
Joined: Wed Oct 05, 2016 11:53 am

Re: Wall sliding

Post by MrFariator »

Perhaps looking up tutorials or examples on the subject using Box2D (the physics engine that's packaged with löve under love.physics) might yield relevant results. Of course, you might not find examples that are exactly applicable to löve, but any such code should be relatively straight forward to convert to equivalent lua.
OneOrigiN
Prole
Posts: 7
Joined: Fri Jul 24, 2020 3:04 pm

Re: Wall sliding

Post by OneOrigiN »

I solved the problem with the sliding (only on pic. 3). When player hits the "wall" i'm just using :setLinearVelocity() to make sliding effect.But I have another problem: Player can't jump while he's sliding.I tried to stop player first, and then apply impulse but it didn't work.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 92 guests