fix jump trees not activating bodies
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit

This commit is contained in:
austin 2025-04-24 19:08:46 -04:00
parent ccb532f4f7
commit bd5e7b562f
3 changed files with 3 additions and 0 deletions

View File

@ -1520,6 +1520,7 @@ Fix nav mesh construction params
(04/24/2025)
GriddedDataCellManager debugging tools
NavMesh bugfix
Fix jump tree not enabling physics body

View File

@ -107,6 +107,7 @@ public class ClientJumpTree implements BehaviorTree {
body.setLinearVel(linearVelocity.get0(), 0, linearVelocity.get2());
//push parent up
body.addForce(0, currentJumpForce, 0);
body.enable();
if(currentFrame >= jumpFrames){
GravityUtils.clientAttemptActivateGravity(parent);
}

View File

@ -89,6 +89,7 @@ public class ServerJumpTree implements BehaviorTree {
body.setLinearVel(linearVelocity.get0(), 0, linearVelocity.get2());
//push parent up
body.addForce(0, currentJumpForce, 0);
body.enable();
//potentially disable
if(currentFrame >= jumpFrames){
this.setState(JumpState.AWAITING_LAND);