ProjectBorealis / PBCharacterMovement

HL2-style, classic FPS movement for Unreal Engine implemented in C++
https://www.projectborealis.com/movement
MIT License
1.25k stars 164 forks source link

Surfing #23

Closed rodolfoinfantini closed 3 years ago

rodolfoinfantini commented 3 years ago

How can I use the surfing feature? I tried with just a box rotated in 45 degrees but didn't work.

mastercoms commented 3 years ago

You need to add WIP_SURFING to PublicDefinitions.

rodolfoinfantini commented 3 years ago

So in the PBPlayerMovement.h I need to add to public the:

if WIP_SURFING

void PreemptCollision(float DeltaTime, float SurfaceFriction);

endif

? And to use is just put a cube rotated in 45 degrees?

MartinWessel96 commented 3 years ago

Hey sorry if I am Stupid but could you explain how to get this to working? I try to add WIP_SURFINGt to PublicDefinitions but maybe i am doing somthing wrong because its just not working at all.

mastercoms commented 2 years ago

If it is of interest, we have finally published our full surfing code to the repo, and no extra configuration is needed. (besides maybe setting AirAccelerationMultiplier to 100 or 1000, like how surf servers set it with sv_airaccelerate)