-
Notifications
You must be signed in to change notification settings - Fork 740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Advanced Ballistics - Trajectory refinement #5698
Conversation
trueVelocity[2] = bulletDatabase[index].bulletVelocity[2] - wind[2]; | ||
trueSpeed = sqrt(pow(trueVelocity[0], 2) + pow(trueVelocity[1], 2) + pow(trueVelocity[2], 2)); | ||
std::vector<double> bulletVelocity = bulletDatabase[index].bulletVelocity; | ||
double time = 0.0f; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
double with float assignment
ballisticCoefficient = bulletDatabase[index].ballisticCoefficients[i + 1]; | ||
break; | ||
bulletVelocity = bulletDatabase[index].bulletVelocity; | ||
time = 0.0f; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
1ef2618
to
9929fb4
Compare
9929fb4
to
3d1e9db
Compare
e421afc
to
0a3b51e
Compare
3d1e9db
to
bfbfff4
Compare
0a3b51e
to
048b076
Compare
454bc5b
to
d8d3575
Compare
d8d3575
to
aae8a68
Compare
@@ -112,7 +112,9 @@ if (_caliber > 0 && _bulletLength > 0 && _bulletMass > 0 && _barrelTwist > 0) th | |||
|
|||
GVAR(currentbulletID) = (GVAR(currentbulletID) + 1) % 10000; | |||
|
|||
"ace_advanced_ballistics" callExtension format["new:%1:%2:%3:%4:%5:%6:%7:%8:%9:%10:%11:%12:%13:%14:%15:%16:%17", GVAR(currentbulletID), _airFriction, _ballisticCoefficients, _velocityBoundaries, _atmosphereModel, _dragModel, _stabilityFactor, _twistDirection, _transonicStabilityCoef, getPosASL _projectile, _bulletVelocity, EGVAR(common,mapLatitude), EGVAR(weather,currentTemperature), EGVAR(common,mapAltitude), EGVAR(weather,currentHumidity), EGVAR(weather,currentOvercast), CBA_missionTime toFixed 6]; | |||
private _ammoCount = _unit ammo (primaryWeapon _unit); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think AB runs for pistol shots (and maybe spotting rounds?),
unit may not have a rifle
should be able to use _weapon
or _muzzle
from fired EH
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I should have used _muzzle
. I will change it.
* Does not do justice to reality
* Handles greater 'simulationIntervals' much better: * 'simulationInterval=0.00' -> Error (at 2km): 0.004 MILs * 'simulationInterval=0.05' -> Error (at 2km): 0.030 MILs * 'simulationInterval=0.10' -> Error (at 2km): 0.070 MILs * Almost completely FPS invariant
* ArmA is using 9.8066
aae8a68
to
6a3a0ea
Compare
6a3a0ea
to
d43c88a
Compare
Advanced Ballistics - Trajectory refinement
More advanced drag update routine:
simulationIntervals
much better:simulationInterval=0.00
-> Error (at 2km): 0.004 MILssimulationInterval=0.05
-> Error (at 2km): 0.030 MILssimulationInterval=0.10
-> Error (at 2km): 0.070 MILsAlso:
9.80665
->9.8066
) in all modules