description: Explains how to use the Advanced Ballistics framework.
group: framework
order: 5
parent: wiki
mod: ace
version:
major: 3
minor: 0
patch: 0
---
## 1. Configs Values
Reference [CfgAmmo Reference](https://github.com/acemod/ACE3/blob/master/extras/CfgAmmoReference.hpp) for examples of bullets with correct configs. It is probably best to modify an example that's close to the bullet you are trying to add.
<divclass="panel callout">
<h5>All values are in METRIC units!</h5>
</div>
### 1.1 `CfgWeapons`
Example: M4
```cpp
class CfgWeapons {
class yourWeaponClass {
// >1:7 inch rifle twist
// 7 inches * 25.4(mm/in) = 177.8 mm
// Same as the Capital T in [Miller twist rule](https://en.wikipedia.org/wiki/Miller_twist_rule){:target="_blank"} (convert to metric)
ACE_barrelTwist = 177.8;
// >14.5 in (370 mm)
ACE_barrelLength = 368.3;
// Right handed is 1, Left is -1, none is 0
// Leaving blank will default to 1 (almost everything is right-handed)
// A smooth-bore gun (e.g. shotgun) would be `0`.
ACE_twistDirection = 1;
};
};
```
### 1.2 `CfgAmmo`
Example: `B_556x45_Ball`
```cpp
class CfgAmmo {
class yourAmmoClass {
// Bullet diameter in mm (diameter is a little different from caliber)
ACE_caliber = 5.69;
ACE_bulletLength = 23.012; // Bullet Length in mm
ACE_bulletMass = 4.0176; // Mass in grams (example is roughly 62 grains)