Source Engine Movement - Open Sourced

I recently revisited my Source Engine Inspired Movement Controller. After some cleaning and optimizations, I’ve decided to release a smaller version of it to the public. This code is meant for PC only.

It includes custom collision (collide and slide solution), as well as some friction inclusions to limit bhopping in a way similar to newer source games (CSGO).

Source: GitHub - beters02/source-rbx: Roblox Source Engine Movement
Testing Place: Movement Testing - Roblox

21 Likes

Current flaws: Can’t surf
Ignores slopes
Ignores WalkSpeed
Can’t swim
Nothing is perfect. But this is still pretty good.

3 Likes

is the testing place supposed to be uncopylocked?

1 Like

It’s nice, however for collision and sliding it’s probably better to use roblox physics if I’m gonna be honest. Well it would vary between games but probably roblox physics would be better.

1 Like

Either I am stupid or it works very poorly. I can barely control the character and it keeps moving when I am not pressing down any keys, and I can’t jump. Maybe I am doing something wrong.

It does move when you aren’t holding the keys down. It’s using something called a LinearVelocity.

1 Like

It is a constant force and velocity but he is experiencing a bug. I think his clothes are colliding with his model. I will look into it.

1 Like

I would have liked to use Roblox Physics but I found that there was a lot of interesting collision issues when using strictly in house physics.

1 Like

Thank you. I will continue to add features such as slopes and walking. These are features in my original movement controller already, but didn’t make it in this initial public version.

1 Like

Quick update.

Disabled default collision on the character model, which was causing some unexpected collisions to occur

1 Like

Yeah makes sense. I see.

30char

1 Like

Doesn’t work on mobile. Can’t move at all.

Thank you for posting this, I added a piece to the description stating that it’s meant for PC only.

This is amazing!

However, I will probably improve this since my game has to be good movement.

1: go back to Roblox physics instead of simulated physics
2: use raycasthitboxv4 to solve collision detection easier.
3: use zone to effectively determine friction instead of dealing with completed entry points
4: implement OPENFPC to improve realistic feel
5:add solvers for constraints in order to fix collision glitches.

Will open source it once I’m finished!

1 Like

Another quick patch.

Added Slope Calculation and began adding surfing. It’s not perfect but it works as is.
Added a Viewmodel and Knife

Can’t wait to see what you accomplish!

Edit:
I added some more collision functionality to the source code, feel free to take a look if you’d like.
And here is the repo I used as a base, maybe you can do more with it. GitHub - Olezen/UnitySourceMovement: Source engine-like movement in Unity, based on Fragsurf by cr4yz (Jake E.).