About Store Forum Documentation Contact



Post Reply 
Jump / Slope Burst Problem
Author Message
SamNainocard Offline
Member

Post: #1
Jump / Slope Burst Problem
This is probably old problem, but I don't know what cause these.

1. When jump rapidly while moving character will often got a speed burst when jumping again.

2.When moving very fast speed on small slope that is can't be move up normally, character will try to 'climb' and slide back down, but will get a huge speed burst and not snap to the ground if able to climb that slope.

I create phys without additional PhysMtrl config.
Code:
Physics.create(EE_PHYSX_DLL_PATH).gravity(Vec(0, -9.8, 0));





Code:
input.jump=Kb.bp(KB_J)*3.5f;

However, I can fix first problem adding extra 'onGround' checking though. Did ctrl.update() forget to check for onGround() before jumping? pfft

Code:
input.jump=Kb.bp(KB_J)*ctrl.onGround()*3.5f;

The second problem however, is the main problem





I think the problem coming from climbing over 'ctrl_ground_slope' (as see from first 2 second, where it try to climb then slide back down, before I add extra move speed enough to climb over that slope and get burst forward, and not snapping on the ground).

This even more noticeable if jump near or into the slope on high speed.





Is there a way to prevent these? I think make a character snapped to the ground is enough?

Sorry for letterbox video/GUI, I messed up record. smile
(This post was last modified: 01-15-2016 05:42 PM by SamNainocard.)
01-15-2016 05:42 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Jump / Slope Burst Problem
Hi,

Right now I'm busy with working on other things (Windows Universal App / Phone support), so the best bet would be to play around with the engine source code.
void Controller::update(C Vec &velocity, Bool crouch, Flt jump)
https://github.com/Esenthel/EsenthelEngi...roller.cpp
01-17-2016 04:34 AM
Find all posts by this user Quote this message in a reply
SamNainocard Offline
Member

Post: #3
RE: Jump / Slope Burst Problem
I see, but I didn't have source license, so I don't have an access to it. smile
01-17-2016 02:49 PM
Find all posts by this user Quote this message in a reply
Post Reply