Polynomial Projectile Angle Calculator
Solves this problem by approximating the trajectory as a second degree polynomial. This approximation is good for ~20 ticks.
Currently only used as backup
Functions
Link copied to clipboard
open override fun calculateAngleFor(projectileInfo: TrajectoryInfo, sourcePos: Vec3, targetPosFunction: PositionExtrapolation, targetShape: EntityDimensions): Rotation?
Link copied to clipboard
Link copied to clipboard
open fun calculateAngleForStaticTarget(projectileInfo: TrajectoryInfo, target: Vec3, shape: EntityDimensions): Rotation?