HeadMotionObserve

public class HeadMotionObserve extends HeadMotionBase

Class HeadMotionObserve. Provides headmotionobserve functionality for the Hytale server.

java.lang.Object > HeadMotionBase > HeadMotionObserve

Field Summary

preDelay

protected double preDelay

Field preDelay.

delay

protected double delay

Field delay.

currentViewSegment

protected int currentViewSegment

Field currentViewSegment.

invertedDirection

protected boolean invertedDirection

Field invertedDirection.

targetBodyOffsetYaw

protected float targetBodyOffsetYaw

Field targetBodyOffsetYaw.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

headRotationComponent

final HeadRotation headRotationComponent

Field headRotationComponent.

headRotation

final Vector3f headRotation

Field headRotation.

modelComponent

final ModelComponent modelComponent

Field modelComponent.

headRotationRestrictions

final CameraSettings headRotationRestrictions

Field headRotationRestrictions.

yawRange

final Rangef yawRange

Field yawRange.

min

final float min

Field min.

max

final float max

Field max.

fullSector

final float fullSector

Field fullSector.

segment

final float segment

Field segment.

thisSegment

final int thisSegment

Field thisSegment.

Method Detail

HeadMotionObserve

public public HeadMotionObserve (@Nonnull final BuilderHeadMotionObserve builder, @Nonnull final BuilderSupport support)

Method HeadMotionObserve.

Parameters:
@Nonnull final BuilderHeadMotionObserve builder
@Nonnull final BuilderSupport support

activate

public void activate (@Nonnull final Ref ref, @Nonnull final Role role, @Nonnull final ComponentAccessor componentAccessor)

Method activate.

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

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

tickPreDelay

protected boolean tickPreDelay (final double dt)

Method tickPreDelay.

Parameters:
final double dt

tickDelay

protected boolean tickDelay (final double dt)

Method tickDelay.

Parameters:
final double dt

pickNextAngle

protected void pickNextAngle (@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)

Method pickNextAngle.

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

if

public else if (this.viewSegments > 1)

Method if.

Parameters:
this.viewSegments > 1