geom work
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good

This commit is contained in:
austin 2025-05-31 15:42:24 -04:00
parent 6723031154
commit 0b4c08796e
3 changed files with 14 additions and 4 deletions

View File

@ -2099,6 +2099,7 @@ Macro pathing test
Actually fix pathing spinlock
Support for observing ai entities
ServerGroundMovementTree supports collidable entities
ServerGroundMovementTree geom work

View File

@ -290,7 +290,10 @@ public class ServerGroundMovementTree implements BehaviorTree {
CreatureUtils.setVelocity(parent, velocity);
}
if(body == null){
ServerEntityUtils.repositionEntity(parent, new Vector3d(position).add(velocity,velocity,velocity));
Vector3d velVec = new Vector3d(movementVector);
velVec.mul(velocity * Globals.engineState.timekeeper.getSimFrameTime());
velVec.add(position);
ServerEntityUtils.repositionEntity(parent, velVec);
} else {
body.enable();
body.setLinearVel(
@ -339,7 +342,10 @@ public class ServerGroundMovementTree implements BehaviorTree {
this.updateVelocity();
float velocity = this.getModifiedVelocity();
if(body == null){
ServerEntityUtils.repositionEntity(parent, new Vector3d(position).add(velocity,velocity,velocity));
Vector3d velVec = new Vector3d(movementVector);
velVec.mul(velocity * Globals.engineState.timekeeper.getSimFrameTime());
velVec.add(position);
ServerEntityUtils.repositionEntity(parent, velVec);
} else {
body.enable();
body.setLinearVel(
@ -407,7 +413,10 @@ public class ServerGroundMovementTree implements BehaviorTree {
GravityUtils.serverAttemptActivateGravity(parent);
}
if(body == null){
ServerEntityUtils.repositionEntity(parent, new Vector3d(position).add(velocity,velocity,velocity));
Vector3d velVec = new Vector3d(movementVector);
velVec.mul(velocity * Globals.engineState.timekeeper.getSimFrameTime());
velVec.add(position);
ServerEntityUtils.repositionEntity(parent, velVec);
} else {
body.enable();
body.setLinearVel(

View File

@ -44,7 +44,7 @@ public class AIManager {
/**
* Controls whether the ai manager should simulate each frame or not
*/
private boolean active = true;
private boolean active = false;
/**
* The timer service