movement tweaks, upright tree fix
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good

This commit is contained in:
austin 2024-08-12 21:49:51 -04:00
parent d25e07f35a
commit 902680ad16
4 changed files with 8 additions and 6 deletions

View File

@ -128,7 +128,7 @@
"type" : "GROUND",
"acceleration" : 5000.0,
"maxVelocity" : 500.5,
"strafeMultiplier" : 0.7,
"strafeMultiplier" : 1.0,
"backpedalMultiplier" : 0.5,
"footstepFirstAudioOffset" : 0.2,
"footstepSecondAudioOffset" : 0.6,
@ -160,7 +160,7 @@
{
"type" : "JUMP",
"jumpFrames" : 3,
"jumpForce" : 500,
"jumpForce" : 700,
"animationJump" : {
"nameThirdPerson" : "Jump",
"nameFirstPerson" : "Jump",

View File

@ -546,6 +546,8 @@ Block sfx
Fix server hitboxes freaking out at animation end
Fix hitcapsule misalignment
Always upright tree
Fix upright tree clearing linear force/velocity
Movement tweaks
# TODO

View File

@ -33,9 +33,9 @@ public class ClientAlwaysUprightTree implements BehaviorTree {
if(body != null){
Vector3d position = EntityUtils.getPosition(parent);
Quaterniond sourceRotation = new Quaterniond(EntityUtils.getRotation(parent));
Vector3d linearVelocity = new Vector3d();
Vector3d linearVelocity = PhysicsUtils.odeVecToJomlVec(body.getLinearVel());
Vector3d angularVelocity = new Vector3d();
Vector3d linearForce = new Vector3d();
Vector3d linearForce = PhysicsUtils.odeVecToJomlVec(body.getForce());
Vector3d angularForce = new Vector3d();
//make sure rotation is vertical

View File

@ -36,9 +36,9 @@ public class ServerAlwaysUprightTree implements BehaviorTree {
Realm realm = Globals.realmManager.getEntityRealm(parent);
Vector3d position = EntityUtils.getPosition(parent);
Quaterniond sourceRotation = new Quaterniond(EntityUtils.getRotation(parent));
Vector3d linearVelocity = new Vector3d();
Vector3d linearVelocity = PhysicsUtils.odeVecToJomlVec(body.getLinearVel());
Vector3d angularVelocity = new Vector3d();
Vector3d linearForce = new Vector3d();
Vector3d linearForce = PhysicsUtils.odeVecToJomlVec(body.getForce());
Vector3d angularForce = new Vector3d();
//make sure rotation is vertical