public class BodyMotionAimCharge extends BodyMotionBase
Class BodyMotionAimCharge. Provides bodymotionaimcharge functionality for the Hytale server.
java.lang.Object > BodyMotionBase > BodyMotionAimCharge
Field Summary
selfPosition
final
Vector3d
selfPosition
Field selfPosition.
distanceToTarget
final
double
distanceToTarget
Field distanceToTarget.
x
final
double
x
Field x.
y
final
double
y
Field y.
z
final
double
z
Field z.
yaw
final
float
yaw
Field yaw.
pitch
final
float
pitch
Field pitch.
transformComponent
final
TransformComponent
transformComponent
Field transformComponent.
bodyRotation
final
Vector3f
bodyRotation
Field bodyRotation.
distance
final
double
distance
Field distance.
target
final
Ref
target
Field target.
Method Detail
BodyMotionAimCharge
public
public
BodyMotionAimCharge
(@Nonnull final BuilderBodyMotionAimCharge builder, @Nonnull final BuilderSupport support)
Method BodyMotionAimCharge.
- Parameters:
@Nonnull final BuilderBodyMotionAimChargebuilder@Nonnull final BuilderSupportsupport
preComputeSteering
public
void
preComputeSteering
(@Nonnull final Ref ref, @Nonnull final Role role, @Nullable final InfoProvider sensorInfo, @Nonnull final Store store)
Method preComputeSteering.
- Parameters:
@Nonnull final Refref@Nonnull final Rolerole@Nullable final InfoProvidersensorInfo@Nonnull final Storestore
computeSteering
public
boolean
computeSteering
(@Nonnull final Ref ref, @Nonnull final Role role, @Nullable final InfoProvider sensorInfo, final double dt, @Nonnull final Steering desiredSteering, @Nonnull final ComponentAccessor componentAccessor)
Method computeSteering.
- Parameters:
@Nonnull final Refref@Nonnull final Rolerole@Nullable final InfoProvidersensorInfofinal doubledt@Nonnull final SteeringdesiredSteering@Nonnull final ComponentAccessorcomponentAccessor