fix jump trees not activating bodies
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
This commit is contained in:
parent
ccb532f4f7
commit
bd5e7b562f
@ -1520,6 +1520,7 @@ Fix nav mesh construction params
|
|||||||
(04/24/2025)
|
(04/24/2025)
|
||||||
GriddedDataCellManager debugging tools
|
GriddedDataCellManager debugging tools
|
||||||
NavMesh bugfix
|
NavMesh bugfix
|
||||||
|
Fix jump tree not enabling physics body
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -107,6 +107,7 @@ public class ClientJumpTree implements BehaviorTree {
|
|||||||
body.setLinearVel(linearVelocity.get0(), 0, linearVelocity.get2());
|
body.setLinearVel(linearVelocity.get0(), 0, linearVelocity.get2());
|
||||||
//push parent up
|
//push parent up
|
||||||
body.addForce(0, currentJumpForce, 0);
|
body.addForce(0, currentJumpForce, 0);
|
||||||
|
body.enable();
|
||||||
if(currentFrame >= jumpFrames){
|
if(currentFrame >= jumpFrames){
|
||||||
GravityUtils.clientAttemptActivateGravity(parent);
|
GravityUtils.clientAttemptActivateGravity(parent);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -89,6 +89,7 @@ public class ServerJumpTree implements BehaviorTree {
|
|||||||
body.setLinearVel(linearVelocity.get0(), 0, linearVelocity.get2());
|
body.setLinearVel(linearVelocity.get0(), 0, linearVelocity.get2());
|
||||||
//push parent up
|
//push parent up
|
||||||
body.addForce(0, currentJumpForce, 0);
|
body.addForce(0, currentJumpForce, 0);
|
||||||
|
body.enable();
|
||||||
//potentially disable
|
//potentially disable
|
||||||
if(currentFrame >= jumpFrames){
|
if(currentFrame >= jumpFrames){
|
||||||
this.setState(JumpState.AWAITING_LAND);
|
this.setState(JumpState.AWAITING_LAND);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user