mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix Eotvos effect
This commit is contained in:
parent
4d041c3c94
commit
683f45682a
Binary file not shown.
@ -89,8 +89,8 @@ endif()
|
|||||||
|
|
||||||
string(TIMESTAMP ACE_BUILDSTAMP "%Y-%m-%dT%H:%M:%SZ")
|
string(TIMESTAMP ACE_BUILDSTAMP "%Y-%m-%dT%H:%M:%SZ")
|
||||||
set(ACE_VERSION_MAJOR 3)
|
set(ACE_VERSION_MAJOR 3)
|
||||||
set(ACE_VERSION_MINOR 2)
|
set(ACE_VERSION_MINOR 4)
|
||||||
set(ACE_VERSION_REVISION 0)
|
set(ACE_VERSION_REVISION 1)
|
||||||
EXECUTE_PROCESS(COMMAND git rev-parse --verify HEAD
|
EXECUTE_PROCESS(COMMAND git rev-parse --verify HEAD
|
||||||
OUTPUT_VARIABLE T_ACE_VERSION_BUILD
|
OUTPUT_VARIABLE T_ACE_VERSION_BUILD
|
||||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||||
|
@ -5,6 +5,11 @@
|
|||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include <random>
|
#include <random>
|
||||||
|
|
||||||
|
//Guard for M_PI ???? ref https://github.com/acemod/ACE3/pull/2382
|
||||||
|
#ifndef M_PI
|
||||||
|
#define M_PI 3.14159265358979323846f
|
||||||
|
#endif
|
||||||
|
|
||||||
#define GRAVITY 9.80665f
|
#define GRAVITY 9.80665f
|
||||||
#define ABSOLUTE_ZERO_IN_CELSIUS -273.15f
|
#define ABSOLUTE_ZERO_IN_CELSIUS -273.15f
|
||||||
#define KELVIN(t) (t - ABSOLUTE_ZERO_IN_CELSIUS)
|
#define KELVIN(t) (t - ABSOLUTE_ZERO_IN_CELSIUS)
|
||||||
@ -572,8 +577,8 @@ void __stdcall RVExtension(char *output, int outputSize, const char *function)
|
|||||||
positionOffset[1] += cos(bulletDir + M_PI / 2) * horizontalDeflectionPartial;
|
positionOffset[1] += cos(bulletDir + M_PI / 2) * horizontalDeflectionPartial;
|
||||||
}
|
}
|
||||||
|
|
||||||
double centripetalAccel = 2 * 0.0000729 * (bulletDatabase[index].muzzleVelocity / -32.2) * cos(bulletDatabase[index].latitude) * sin(bulletDir);
|
double centripetalAccel = 2 * 0.0000729 * (bulletDatabase[index].muzzleVelocity) * cos(bulletDatabase[index].latitude) * sin(bulletDir);
|
||||||
velocityOffset[2] -= centripetalAccel * deltaT;
|
velocityOffset[2] += centripetalAccel * deltaT;
|
||||||
|
|
||||||
double spinDrift = bulletDatabase[index].twistDirection * 0.0254 * 1.25 * (bulletDatabase[index].stabilityFactor + 1.2) * pow(TOF, 1.83);
|
double spinDrift = bulletDatabase[index].twistDirection * 0.0254 * 1.25 * (bulletDatabase[index].stabilityFactor + 1.2) * pow(TOF, 1.83);
|
||||||
double spinDriftPartial = spinDrift - bulletDatabase[index].spinDrift;
|
double spinDriftPartial = spinDrift - bulletDatabase[index].spinDrift;
|
||||||
|
Loading…
Reference in New Issue
Block a user