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 BuilderBodyMotionLandbuilderMotionLand@Nonnull final BuilderSupportsupport
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 Refref@Nonnull final Rolerole@Nullable final InfoProviderinfoProviderfinal doubledt@Nonnull final SteeringdesiredSteering@Nonnull final ComponentAccessorcomponentAccessor
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 Refref@Nonnull final Rolerole@Nullable final InfoProviderpositionProvider@Nonnull final ComponentAccessorcomponentAccessor
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 Refref@Nonnull final MotionControllermotionController@Nonnull final Vector3dposition@Nonnull final Vector3dtargetPosition@Nonnull final ComponentAccessorcomponentAccessor