fix hitcapsule misalignment
This commit is contained in:
parent
b48501652c
commit
5f15690453
@ -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
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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[]{
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user