BodyMotionAimCharge

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 BuilderBodyMotionAimCharge builder
@Nonnull final BuilderSupport support

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 Ref ref
@Nonnull final Role role
@Nullable final InfoProvider sensorInfo
@Nonnull final Store store

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 Ref ref
@Nonnull final Role role
@Nullable final InfoProvider sensorInfo
final double dt
@Nonnull final Steering desiredSteering
@Nonnull final ComponentAccessor componentAccessor