BodyMotionWanderInCircle

public class BodyMotionWanderInCircle extends BodyMotionWanderBase

Class BodyMotionWanderInCircle. Provides bodymotionwanderincircle functionality for the Hytale server.

java.lang.Object > BodyMotionWanderBase > BodyMotionWanderInCircle

Field Summary

referencePoint

final Vector3d referencePoint

Field referencePoint.

r2

final double r2

Field r2.

activeMotionController

final MotionController activeMotionController

Field activeMotionController.

endDist2

final double endDist2

Field endDist2.

startDist2

final double startDist2

Field startDist2.

n

final Vector3d n

Field n.

endDist3

final double endDist3

Field endDist3.

startDist3

final double startDist3

Field startDist3.

world

final World world

Field world.

entityTransformComponent

final TransformComponent entityTransformComponent

Field entityTransformComponent.

entityPosition

final Vector3d entityPosition

Field entityPosition.

flockReference

final Ref flockReference

Field flockReference.

entityGroupComponent

final EntityGroup entityGroupComponent

Field entityGroupComponent.

leaderRef

final Ref leaderRef

Field leaderRef.

leaderTransformComponent

final TransformComponent leaderTransformComponent

Field leaderTransformComponent.

leaderPosition

final Vector3d leaderPosition

Field leaderPosition.

npcComponent

final NPCEntity npcComponent

Field npcComponent.

Method Detail

BodyMotionWanderInCircle

public public BodyMotionWanderInCircle (@Nonnull final BuilderBodyMotionWanderInCircle builder, @Nonnull final BuilderSupport builderSupport)

Method BodyMotionWanderInCircle.

Parameters:
@Nonnull final BuilderBodyMotionWanderInCircle builder
@Nonnull final BuilderSupport builderSupport

constrainMove

protected double constrainMove (@Nonnull final Ref ref, @Nonnull final Role role, @Nonnull final Vector3d probePosition, @Nonnull final Vector3d targetPosition, final double moveDist, @Nonnull final ComponentAccessor componentAccessor)

Method constrainMove.

Parameters:
@Nonnull final Ref ref
@Nonnull final Role role
@Nonnull final Vector3d probePosition
@Nonnull final Vector3d targetPosition
final double moveDist
@Nonnull final ComponentAccessor componentAccessor

getReferencePoint

protected Vector3d getReferencePoint (@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)

Method getReferencePoint.

Parameters:
@Nonnull final Ref ref
@Nonnull final ComponentAccessor componentAccessor