BodyMotionLand

public class BodyMotionLand extends BodyMotionFind

Class BodyMotionLand. Provides bodymotionland functionality for the Hytale server.

java.lang.Object > BodyMotionFind > BodyMotionLand

Field Summary

result

final boolean result

Field result.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

npcComponent

final NPCEntity npcComponent

Field npcComponent.

activeMotionController

final MotionController activeMotionController

Field activeMotionController.

differenceY

final double differenceY

Field differenceY.

waypointDistanceSquared

final double waypointDistanceSquared

Field waypointDistanceSquared.

Method Detail

BodyMotionLand

public public BodyMotionLand (@Nonnull final BuilderBodyMotionLand builderMotionLand, @Nonnull final BuilderSupport support)

Method BodyMotionLand.

Parameters:
@Nonnull final BuilderBodyMotionLand builderMotionLand
@Nonnull final BuilderSupport support

computeSteering

public boolean computeSteering (@Nonnull final Ref ref, @Nonnull final Role role, @Nullable final InfoProvider infoProvider, 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 infoProvider
final double dt
@Nonnull final Steering desiredSteering
@Nonnull final ComponentAccessor componentAccessor

canComputeMotion

public boolean canComputeMotion (@Nonnull final Ref ref, @Nonnull final Role role, @Nullable final InfoProvider positionProvider, @Nonnull final ComponentAccessor componentAccessor)

Method canComputeMotion.

Parameters:
@Nonnull final Ref ref
@Nonnull final Role role
@Nullable final InfoProvider positionProvider
@Nonnull final ComponentAccessor componentAccessor

isGoalReached

protected boolean isGoalReached (@Nonnull final Ref ref, @Nonnull final MotionController motionController, @Nonnull final Vector3d position, @Nonnull final Vector3d targetPosition, @Nonnull final ComponentAccessor componentAccessor)

Method isGoalReached.

Parameters:
@Nonnull final Ref ref
@Nonnull final MotionController motionController
@Nonnull final Vector3d position
@Nonnull final Vector3d targetPosition
@Nonnull final ComponentAccessor componentAccessor