public class AimingHelper
Class AimingHelper. Provides aiminghelper functionality for the Hytale server.
java.lang.Object > AimingHelper
Field Summary
x2
final
double
x2
Field x2.
c
final
double
c
Field c.
minThrowSpeed
final
double
minThrowSpeed
Field minThrowSpeed.
t
final
double
t
Field t.
k
final
double
k
Field k.
peak
final
double
peak
Field peak.
cx
final
double
cx
Field cx.
cy
final
double
cy
Field cy.
Method Detail
ensurePossibleThrowSpeed
static
double
ensurePossibleThrowSpeed
(final double distance, final double y, final double gravity, final double throwSpeed)
Method ensurePossibleThrowSpeed.
- Parameters:
final doubledistancefinal doubleyfinal doublegravityfinal doublethrowSpeed
computePitch
static
boolean
computePitch
(final double distance, final double height, final double velocity, final double gravity, @Nonnull final float[] resultingPitch)
Method computePitch.
- Parameters:
final doubledistancefinal doubleheightfinal doublevelocityfinal doublegravity@Nonnull final float[]resultingPitch
if
public
else
if
(gravity < 3.0)
Method if.
- Parameters:
gravity <3.0