22w16b fixed sound trigonometry
This commit is contained in:
parent
c2e448a440
commit
3b0229e87b
95573
javascript/classes.js
95573
javascript/classes.js
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -1186,16 +1186,12 @@ public class EaglerAdapterImpl2 {
|
|||
return s;
|
||||
}
|
||||
public static final void setListenerPos(float x, float y, float z, float vx, float vy, float vz, float pitch, float yaw) {
|
||||
float var11 = -MathHelper.cos(-yaw * 0.017453292F - (float) Math.PI);
|
||||
float var12 = -MathHelper.sin(-yaw * 0.017453292F - (float) Math.PI);
|
||||
float var13 = -var12;
|
||||
float var14 = MathHelper.sin(-pitch * 0.017453292F - (float) Math.PI);
|
||||
float var15 = -var11;
|
||||
float var16 = 0.0F;
|
||||
float var17 = 1.0F;
|
||||
float var18 = 0.0F;
|
||||
float var2 = MathHelper.cos(yaw * 0.017453292F - (float) Math.PI);
|
||||
float var3 = MathHelper.sin(yaw * 0.017453292F - (float) Math.PI);
|
||||
float var4 = -MathHelper.cos(pitch * 0.017453292F);
|
||||
float var5 = MathHelper.sin(pitch * 0.017453292F);
|
||||
ss.setListenerPosition(x, y, z);
|
||||
ss.setListenerOrientation(var13, var14, var15, var16, var17, var18);
|
||||
ss.setListenerOrientation(var3 * var4, var5, var2 * var4, 0.0f, 1.0f, 0.0f);
|
||||
ss.setListenerVelocity(vx, vy, vz);
|
||||
}
|
||||
public static final void setPlaybackOffsetDelay(float f) {
|
||||
|
|
|
@ -4,7 +4,7 @@ public class ConfigConstants {
|
|||
|
||||
public static boolean profanity = false;
|
||||
|
||||
public static final String version = "22w16a";
|
||||
public static final String version = "22w16b";
|
||||
public static final String mainMenuString = "eaglercraft " + version;
|
||||
|
||||
public static final String forkMe = "https://github.com/LAX1DUDE/eaglercraft";
|
||||
|
|
|
@ -1565,13 +1565,13 @@ public class EaglerAdapterImpl2 {
|
|||
public static native String getFileChooserResultName();
|
||||
|
||||
public static final void setListenerPos(float x, float y, float z, float vx, float vy, float vz, float pitch, float yaw) {
|
||||
float var2 = MathHelper.cos(-yaw * 0.017453292F);
|
||||
float var3 = MathHelper.sin(-yaw * 0.017453292F);
|
||||
float var4 = -MathHelper.cos(-pitch * 0.017453292F);
|
||||
float var5 = MathHelper.sin(-pitch * 0.017453292F);
|
||||
float var2 = MathHelper.cos(yaw * 0.017453292F - (float) Math.PI);
|
||||
float var3 = MathHelper.sin(yaw * 0.017453292F - (float) Math.PI);
|
||||
float var4 = -MathHelper.cos(pitch * 0.017453292F);
|
||||
float var5 = MathHelper.sin(pitch * 0.017453292F);
|
||||
AudioListener l = audioctx.getListener();
|
||||
l.setPosition(x, y, z);
|
||||
l.setOrientation(var3 * var4, -var5, var2 * var4, 0.0f, 1.0f, 0.0f);
|
||||
l.setOrientation(var3 * var4, var5, var2 * var4, 0.0f, 1.0f, 0.0f);
|
||||
}
|
||||
|
||||
private static int playbackId = 0;
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user