Cydhranian Projectile Angle Calculator
Implements the angle calculator described by Cydhra (see here).
This is currently used as the flagship implementation. When the distance between the source and target pos is low, this implementation often malfunctions. Use a backup calculator for low distances instead.
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?