fix hitcapsule misalignment

This commit is contained in:
austin 2024-08-12 15:32:17 -04:00
parent b48501652c
commit 5f15690453
4 changed files with 3 additions and 3 deletions

View File

@ -19,6 +19,5 @@
Hitboxes between server and client feel wayyyy off Hitboxes between server and client feel wayyyy off
+ bug fixes + bug fixes
Capsule hitboxes aren't connecting correctly

View File

@ -542,6 +542,7 @@ Fix server animation playing at reduced timescale
Block override concept for hitboxes Block override concept for hitboxes
Block sfx Block sfx
Fix server hitboxes freaking out at animation end Fix server hitboxes freaking out at animation end
Fix hitcapsule misalignment
# TODO # TODO

View File

@ -249,7 +249,7 @@ public class ControlHandler {
boolean shouldRecaptureScreen = false; boolean shouldRecaptureScreen = false;
//controls whether the camera is first or third person //controls whether the camera is first or third person
boolean cameraIsThirdPerson = false; boolean cameraIsThirdPerson = true;
//The list of window strings that would block main game controls //The list of window strings that would block main game controls
static String[] controlBlockingWindows = new String[]{ static String[] controlBlockingWindows = new String[]{

View File

@ -366,7 +366,7 @@ public class HitboxCollectionState {
//the second quaternion is a rotation along the x axis. This is used to put the hitbox rotation into ode's space //the second quaternion is a rotation along the x axis. This is used to put the hitbox rotation into ode's space
//ode is Z-axis-up //ode is Z-axis-up
if(previousWorldPos.distance(worldPosition) > 0.0){ if(previousWorldPos.distance(worldPosition) > 0.0){
rotation = MathUtils.calculateRotationFromPointToPoint(previousWorldPos,worldPosition).mul(new Quaterniond(0,0,0.707,0.707)); rotation = MathUtils.calculateRotationFromPointToPoint(previousWorldPos,worldPosition).mul(new Quaterniond(0,0.707,0,0.707));
} }
//create new capsule //create new capsule