Hello everyone! I'm new to love2D, and I interested in wall sliding.
So, what I want:
Yeah,googled didn't help me. I just found some examples in unity.
P.S sorry for my english.
Wall sliding
-
- Party member
- Posts: 562
- Joined: Wed Oct 05, 2016 11:53 am
Re: Wall sliding
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.
Re: Wall sliding
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.
Who is online
Users browsing this forum: No registered users and 3 guests