fix hitcapsule misalignment
This commit is contained in:
parent
b48501652c
commit
5f15690453
@ -19,6 +19,5 @@
|
||||
Hitboxes between server and client feel wayyyy off
|
||||
|
||||
+ bug fixes
|
||||
Capsule hitboxes aren't connecting correctly
|
||||
|
||||
|
||||
|
||||
@ -542,6 +542,7 @@ Fix server animation playing at reduced timescale
|
||||
Block override concept for hitboxes
|
||||
Block sfx
|
||||
Fix server hitboxes freaking out at animation end
|
||||
Fix hitcapsule misalignment
|
||||
|
||||
|
||||
# TODO
|
||||
|
||||
@ -249,7 +249,7 @@ public class ControlHandler {
|
||||
boolean shouldRecaptureScreen = false;
|
||||
|
||||
//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
|
||||
static String[] controlBlockingWindows = new String[]{
|
||||
|
||||
@ -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
|
||||
//ode is Z-axis-up
|
||||
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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user