MotionControllerBase

abstract class MotionControllerBase implements MotionController

Class MotionControllerBase. Provides motioncontrollerbase functionality for the Hytale server.

java.lang.Object > MotionControllerBase

Field Summary

role

protected Role role

Field role.

inertia

protected double inertia

Field inertia.

knockbackScale

protected double knockbackScale

Field knockbackScale.

gravity

protected double gravity

Field gravity.

debugModeSteer

protected boolean debugModeSteer

Field debugModeSteer.

debugModeMove

protected boolean debugModeMove

Field debugModeMove.

debugModeCollisions

protected boolean debugModeCollisions

Field debugModeCollisions.

debugModeBlockCollisions

protected boolean debugModeBlockCollisions

Field debugModeBlockCollisions.

debugModeProbeBlockCollisions

protected boolean debugModeProbeBlockCollisions

Field debugModeProbeBlockCollisions.

debugModeValidatePositions

protected boolean debugModeValidatePositions

Field debugModeValidatePositions.

debugModeOverlaps

protected boolean debugModeOverlaps

Field debugModeOverlaps.

debugModeValidateMath

protected boolean debugModeValidateMath

Field debugModeValidateMath.

ignoreDamping

protected boolean ignoreDamping

Field ignoreDamping.

isObstructed

protected boolean isObstructed

Field isObstructed.

navState

protected NavState navState

Field navState.

throttleDuration

protected double throttleDuration

Field throttleDuration.

targetDeltaSquared

protected double targetDeltaSquared

Field targetDeltaSquared.

recomputePath

protected boolean recomputePath

Field recomputePath.

enableTriggers

protected boolean enableTriggers

Field enableTriggers.

enableBlockDamage

protected boolean enableBlockDamage

Field enableBlockDamage.

isReceivingBlockDamage

protected boolean isReceivingBlockDamage

Field isReceivingBlockDamage.

isAvoidingBlockDamage

protected boolean isAvoidingBlockDamage

Field isAvoidingBlockDamage.

requiresPreciseMovement

protected boolean requiresPreciseMovement

Field requiresPreciseMovement.

requiresDepthProbing

protected boolean requiresDepthProbing

Field requiresDepthProbing.

havePreciseMovementTarget

protected boolean havePreciseMovementTarget

Field havePreciseMovementTarget.

preciseMovementTarget

protected Vector3d preciseMovementTarget

Field preciseMovementTarget.

isRelaxedMoveConstraints

protected boolean isRelaxedMoveConstraints

Field isRelaxedMoveConstraints.

isBlendingHeading

protected boolean isBlendingHeading

Field isBlendingHeading.

blendHeading

protected double blendHeading

Field blendHeading.

haveBlendHeadingPosition

protected boolean haveBlendHeadingPosition

Field haveBlendHeadingPosition.

blendHeadingPosition

protected Vector3d blendHeadingPosition

Field blendHeadingPosition.

blendLevelAtTargetPosition

protected double blendLevelAtTargetPosition

Field blendLevelAtTargetPosition.

fastMotionKind

protected boolean fastMotionKind

Field fastMotionKind.

idleMotionKind

protected boolean idleMotionKind

Field idleMotionKind.

horizontalIdleKind

protected boolean horizontalIdleKind

Field horizontalIdleKind.

moveSpeed

protected double moveSpeed

Field moveSpeed.

previousSpeed

protected double previousSpeed

Field previousSpeed.

motionKind

protected MotionKind motionKind

Field motionKind.

lastMovementStateUpdatedMotionKind

protected MotionKind lastMovementStateUpdatedMotionKind

Field lastMovementStateUpdatedMotionKind.

previousMotionKind

protected MotionKind previousMotionKind

Field previousMotionKind.

effectHorizontalSpeedMultiplier

protected double effectHorizontalSpeedMultiplier

Field effectHorizontalSpeedMultiplier.

cachedMovementBlocked

protected boolean cachedMovementBlocked

Field cachedMovementBlocked.

yaw

private float yaw

Field yaw.

pitch

private float pitch

Field pitch.

roll

private float roll

Field roll.

processTriggersHasMoved

private boolean processTriggersHasMoved

Field processTriggersHasMoved.

movementSettings

protected MovementSettings movementSettings

Field movementSettings.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

bodyRotation

final Vector3f bodyRotation

Field bodyRotation.

world

final World world

Field world.

chunkStore

final ChunkStore chunkStore

Field chunkStore.

chunkIndex

final long chunkIndex

Field chunkIndex.

chunkRef

final Ref chunkRef

Field chunkRef.

worldChunkComponent

final WorldChunk worldChunkComponent

Field worldChunkComponent.

blockX

final int blockX

Field blockX.

blockY

final int blockY

Field blockY.

blockZ

final int blockZ

Field blockZ.

fluidId

final int fluidId

Field fluidId.

lastFastMotion

final boolean lastFastMotion

Field lastFastMotion.

npcComponent

final NPCEntity npcComponent

Field npcComponent.

st

final double st

Field st.

t

final double t

Field t.

l

final double l

Field l.

v

final double v

Field v.

maxBodyRotation

final float maxBodyRotation

Field maxBodyRotation.

maxHeadRotation

final float maxHeadRotation

Field maxHeadRotation.

headRotationComponent

final HeadRotation headRotationComponent

Field headRotationComponent.

headRotation

final Vector3f headRotation

Field headRotation.

movementThresholdSquared

final double movementThresholdSquared

Field movementThresholdSquared.

clientTps

final double clientTps

Field clientTps.

serverTps

final int serverTps

Field serverTps.

rate

final double rate

Field rate.

dampenY

final boolean dampenY

Field dampenY.

useGroundResistance

final boolean useGroundResistance

Field useGroundResistance.

entry

final AppliedVelocity entry

Field entry.

len

final float len

Field len.

mul

final float mul

Field mul.

resistanceScale

final double resistanceScale

Field resistanceScale.

velocity

final Vector3d velocity

Field velocity.

velocity2

final Vector3d velocity2

Field velocity2.

velocity3

final Vector3d velocity3

Field velocity3.

hasHeadSteering

final boolean hasHeadSteering

Field hasHeadSteering.

modelComponent

final ModelComponent modelComponent

Field modelComponent.

currentYaw

final float currentYaw

Field currentYaw.

targetYaw

final float targetYaw

Field targetYaw.

turnAngle

final float turnAngle

Field turnAngle.

yawOffset

final float yawOffset

Field yawOffset.

headRotationRestrictions

final CameraSettings headRotationRestrictions

Field headRotationRestrictions.

yawRange

final Rangef yawRange

Field yawRange.

initialBodyYaw

final float initialBodyYaw

Field initialBodyYaw.

currentBodyYaw

final float currentBodyYaw

Field currentBodyYaw.

targetBodyYaw

final float targetBodyYaw

Field targetBodyYaw.

bodyTurnAngle

final float bodyTurnAngle

Field bodyTurnAngle.

currentPitch

final float currentPitch

Field currentPitch.

targetPitch

final float targetPitch

Field targetPitch.

bodyPitch

final float bodyPitch

Field bodyPitch.

pitchOffset

final float pitchOffset

Field pitchOffset.

pitchRange

final Rangef pitchRange

Field pitchRange.

horizontalSpeed

final double horizontalSpeed

Field horizontalSpeed.

velocityEpsilon

final float velocityEpsilon

Field velocityEpsilon.

newValue

final double newValue

Field newValue.

interactionManager

final InteractionManager interactionManager

Field interactionManager.

movementBlocked

final Boolean movementBlocked

Field movementBlocked.

movementEffects

final MovementEffects movementEffects

Field movementEffects.

distance

final double distance

Field distance.

scale

final double scale

Field scale.

horzMul

final double horzMul

Field horzMul.

cd

final BlockCollisionData cd

Field cd.

materialName

final String materialName

Field materialName.

typeName

final String typeName

Field typeName.

hitboxName

final String hitboxName

Field hitboxName.

blockRotation

final RotationTuple blockRotation

Field blockRotation.

count

final int count

Field count.

interactionManagerComponent

final InteractionManager interactionManagerComponent

Field interactionManagerComponent.

damageToEntity

final int damageToEntity

Field damageToEntity.

damage

final Damage damage

Field damage.

dx

final double dx

Field dx.

dy

final double dy

Field dy.

dz

final double dz

Field dz.

position

final Vector3d position

Field position.

module

final CollisionModule module

Field module.

config

final CollisionModuleConfig config

Field config.

saveDebugModeOverlaps

final boolean saveDebugModeOverlaps

Field saveDebugModeOverlaps.

isValid

final boolean isValid

Field isValid.

canClear

protected boolean canClear

Field canClear.

Method Detail

MotionControllerBase

public public MotionControllerBase (@Nonnull final BuilderSupport builderSupport, @Nonnull final BuilderMotionControllerBase builder)

Method MotionControllerBase.

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

getRole

public Role getRole ()

Method getRole.

setRole

public void setRole (final Role role)

Method setRole.

Parameters:
final Role role

setInertia

public void setInertia (final double inertia)

Method setInertia.

Parameters:
final double inertia

setKnockbackScale

public void setKnockbackScale (final double knockbackScale)

Method setKnockbackScale.

Parameters:
final double knockbackScale

updateModelParameters

public void updateModelParameters (final Ref ref, final Model model, @Nonnull final Box boundingBox, final ComponentAccessor componentAccessor)

Method updateModelParameters.

Parameters:
final Ref ref
final Model model
@Nonnull final Box boundingBox
final ComponentAccessor componentAccessor

readEntityPosition

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

Method readEntityPosition.

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

postReadPosition

public void postReadPosition (final Ref ref, final ComponentAccessor componentAccessor)

Method postReadPosition.

Parameters:
final Ref ref
final ComponentAccessor componentAccessor

moveEntity

public void moveEntity (@Nonnull final Ref ref, final double dt, @Nonnull final ComponentAccessor componentAccessor)

Method moveEntity.

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

getYaw

public float getYaw ()

Method getYaw.

getPitch

public float getPitch ()

Method getPitch.

getRoll

public float getRoll ()

Method getRoll.

touchesWater

public boolean touchesWater (final boolean defaultValue, @Nonnull final ComponentAccessor componentAccessor)

Method touchesWater.

Parameters:
final boolean defaultValue
@Nonnull final ComponentAccessor componentAccessor

updateMovementState

public void updateMovementState (@Nonnull final Ref ref, @Nonnull final MovementStates movementStates, @Nonnull final Steering steering, @Nonnull final Vector3d velocity, @Nonnull final ComponentAccessor componentAccessor)

Method updateMovementState.

Parameters:
@Nonnull final Ref ref
@Nonnull final MovementStates movementStates
@Nonnull final Steering steering
@Nonnull final Vector3d velocity
@Nonnull final ComponentAccessor componentAccessor

updateFlyingStates

protected void updateFlyingStates (@Nonnull final MovementStates movementStates, final boolean idle, final boolean fastMotionKind)

Method updateFlyingStates.

Parameters:
@Nonnull final MovementStates movementStates
final boolean idle
final boolean fastMotionKind

updateSwimmingStates

protected void updateSwimmingStates (@Nonnull final MovementStates movementStates, final boolean idle, final boolean fastMotionKind, final boolean horizontalIdleKind)

Method updateSwimmingStates.

Parameters:
@Nonnull final MovementStates movementStates
final boolean idle
final boolean fastMotionKind
final boolean horizontalIdleKind

updateMovingStates

static void updateMovingStates (@Nonnull final Ref ref, @Nonnull final MovementStates movementStates, final boolean fastMotionKind, @Nonnull final ComponentAccessor componentAccessor)

Method updateMovingStates.

Parameters:
@Nonnull final Ref ref
@Nonnull final MovementStates movementStates
final boolean fastMotionKind
@Nonnull final ComponentAccessor componentAccessor

updateAscendingStates

protected void updateAscendingStates (@Nonnull final Ref ref, @Nonnull final MovementStates movementStates, final boolean fastMotionKind, final boolean horizontalIdleKind, @Nonnull final ComponentAccessor componentAccessor)

Method updateAscendingStates.

Parameters:
@Nonnull final Ref ref
@Nonnull final MovementStates movementStates
final boolean fastMotionKind
final boolean horizontalIdleKind
@Nonnull final ComponentAccessor componentAccessor

updateDescendingStates

protected void updateDescendingStates (@Nonnull final Ref ref, @Nonnull final MovementStates movementStates, final boolean fastMotionKind, final boolean hovering, @Nonnull final ComponentAccessor componentAccessor)

Method updateDescendingStates.

Parameters:
@Nonnull final Ref ref
@Nonnull final MovementStates movementStates
final boolean fastMotionKind
final boolean hovering
@Nonnull final ComponentAccessor componentAccessor

updateDroppingStates

protected void updateDroppingStates (@Nonnull final MovementStates movementStates)

Method updateDroppingStates.

Parameters:
@Nonnull final MovementStates movementStates

updateStandingStates

protected void updateStandingStates (@Nonnull final MovementStates movementStates, @Nonnull final MotionKind motionKind, final boolean hovering)

Method updateStandingStates.

Parameters:
@Nonnull final MovementStates movementStates
@Nonnull final MotionKind motionKind
final boolean hovering

steer

public double steer (@Nonnull final Ref ref, @Nonnull final Role role, @Nonnull final Steering bodySteering, @Nonnull final Steering headSteering, final double interval, @Nonnull final ComponentAccessor componentAccessor)

Method steer.

Parameters:
@Nonnull final Ref ref
@Nonnull final Role role
@Nonnull final Steering bodySteering
@Nonnull final Steering headSteering
final double interval
@Nonnull final ComponentAccessor componentAccessor

steer0

public double steer0 (@Nonnull final Ref ref, @Nonnull final Role role, @Nonnull final Steering bodySteering, @Nonnull final Steering headSteering, final double interval, @Nonnull final ComponentAccessor componentAccessor)

Method steer0.

Parameters:
@Nonnull final Ref ref
@Nonnull final Role role
@Nonnull final Steering bodySteering
@Nonnull final Steering headSteering
final double interval
@Nonnull final ComponentAccessor componentAccessor

IllegalArgumentException

public new IllegalArgumentException (String.valueOf(this.translation)

Method IllegalArgumentException.

Parameters:
String.valueOf(this.translation String.valueOf(this.translation

shouldDampenAppliedVelocitiesY

protected boolean shouldDampenAppliedVelocitiesY ()

Method shouldDampenAppliedVelocitiesY.

shouldAlwaysUseGroundResistance

protected boolean shouldAlwaysUseGroundResistance ()

Method shouldAlwaysUseGroundResistance.

calculateYaw

protected void calculateYaw (@Nonnull final Ref ref, @Nonnull final Steering bodySteering, @Nonnull final Steering headSteering, final float maxHeadRotation, final float maxBodyRotation, @Nonnull final ComponentAccessor componentAccessor)

Method calculateYaw.

Parameters:
@Nonnull final Ref ref
@Nonnull final Steering bodySteering
@Nonnull final Steering headSteering
final float maxHeadRotation
final float maxBodyRotation
@Nonnull final ComponentAccessor componentAccessor

if

public else if (NPCPhysicsMath.dotProduct(this.translation.x, 0.0, this.translation.z)

Method if.

Parameters:
NPCPhysicsMath.dotProduct(this.translation.x NPCPhysicsMath.dotProduct(this.translation.x
0.0 0.0
this.translation.z this.translation.z

blendBodyYaw

protected float blendBodyYaw (@Nonnull final Ref ref, final float yawOffset, final float maxBodyRotation, @Nonnull final ComponentAccessor componentAccessor)

Method blendBodyYaw.

Parameters:
@Nonnull final Ref ref
final float yawOffset
final float maxBodyRotation
@Nonnull final ComponentAccessor componentAccessor

calculatePitch

protected void calculatePitch (@Nonnull final Ref ref, @Nonnull final Steering bodySteering, @Nonnull final Steering headSteering, final float maxHeadRotation, @Nonnull final ComponentAccessor componentAccessor)

Method calculatePitch.

Parameters:
@Nonnull final Ref ref
@Nonnull final Steering bodySteering
@Nonnull final Steering headSteering
final float maxHeadRotation
@Nonnull final ComponentAccessor componentAccessor

calculateRoll

protected void calculateRoll (@Nonnull final Steering bodySteering, @Nonnull final Steering headSteering)

Method calculateRoll.

Parameters:
@Nonnull final Steering bodySteering
@Nonnull final Steering headSteering

dampForceVelocity

protected void dampForceVelocity (@Nonnull final Vector3d forceVelocity, final double forceVelocityDamping, final double interval, final ComponentAccessor componentAccessor)

Method dampForceVelocity.

Parameters:
@Nonnull final Vector3d forceVelocity
final double forceVelocityDamping
final double interval
final ComponentAccessor componentAccessor

convertToNewRange

static double convertToNewRange (final double value, final double oldMinRange, final double oldMaxRange, final double newMinRange, final double newMaxRange)

Method convertToNewRange.

Parameters:
final double value
final double oldMinRange
final double oldMaxRange
final double newMinRange
final double newMaxRange

probeMove

public double probeMove (@Nonnull final Ref ref, @Nonnull final Vector3d position, @Nonnull final Vector3d direction, @Nonnull final ProbeMoveData probeMoveData, @Nonnull final ComponentAccessor componentAccessor)

Method probeMove.

Parameters:
@Nonnull final Ref ref
@Nonnull final Vector3d position
@Nonnull final Vector3d direction
@Nonnull final ProbeMoveData probeMoveData
@Nonnull final ComponentAccessor componentAccessor

postExecuteMove

protected void postExecuteMove ()

Method postExecuteMove.

adjustReadPosition

protected void adjustReadPosition (final Ref ref, final ComponentAccessor componentAccessor)

Method adjustReadPosition.

Parameters:
final Ref ref
final ComponentAccessor componentAccessor

adjustWritePosition

protected void adjustWritePosition (final Ref ref, final double dt, @Nonnull final ComponentAccessor componentAccessor)

Method adjustWritePosition.

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

isInProgress

public boolean isInProgress ()

Method isInProgress.

isObstructed

public boolean isObstructed ()

Method isObstructed.

getNavState

public NavState getNavState ()

Method getNavState.

getThrottleDuration

public double getThrottleDuration ()

Method getThrottleDuration.

getTargetDeltaSquared

public double getTargetDeltaSquared ()

Method getTargetDeltaSquared.

setNavState

public void setNavState (final NavState navState, final double throttleDuration, final double targetDeltaSquared)

Method setNavState.

Parameters:
final NavState navState
final double throttleDuration
final double targetDeltaSquared

isForceRecomputePath

public boolean isForceRecomputePath ()

Method isForceRecomputePath.

setForceRecomputePath

public void setForceRecomputePath (final boolean recomputePath)

Method setForceRecomputePath.

Parameters:
final boolean recomputePath

beforeInstructionSensorsAndActions

public void beforeInstructionSensorsAndActions (final double physicsTickDuration)

Method beforeInstructionSensorsAndActions.

Parameters:
final double physicsTickDuration

beforeInstructionMotion

public void beforeInstructionMotion (final double physicsTickDuration)

Method beforeInstructionMotion.

Parameters:
final double physicsTickDuration

isHorizontalIdle

public boolean isHorizontalIdle (final double speed)

Method isHorizontalIdle.

Parameters:
final double speed

canAct

public boolean canAct (@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)

Method canAct.

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

isMovementBlocked

public boolean isMovementBlocked (@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)

Method isMovementBlocked.

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

bisect

public double bisect (@Nonnull final Vector3d validPosition, @Nonnull final Vector3d invalidPosition, @Nonnull final T t, @Nonnull final BiPredicate validate, @Nonnull final Vector3d result)

Method bisect.

Parameters:
@Nonnull final Vector3d validPosition
@Nonnull final Vector3d invalidPosition
@Nonnull final T t
@Nonnull final BiPredicate validate
@Nonnull final Vector3d result

getForce

public Vector3d getForce ()

Method getForce.

addForce

public void addForce (@Nonnull final Vector3d force, final VelocityConfig velocityConfig)

Method addForce.

Parameters:
@Nonnull final Vector3d force
final VelocityConfig velocityConfig

AppliedVelocity

public new AppliedVelocity (new Vector3d(force.x * scale, force.y * scale, force.z * scale)

Method AppliedVelocity.

Parameters:
force.z * scale

forceVelocity

public void forceVelocity (@Nonnull final Vector3d velocity, @Nullable final VelocityConfig velocityConfig, final boolean ignoreDamping)

Method forceVelocity.

Parameters:
@Nonnull final Vector3d velocity
@Nullable final VelocityConfig velocityConfig
final boolean ignoreDamping

clearForce

public void clearForce ()

Method clearForce.

dumpCollisionResults

protected void dumpCollisionResults ()

Method dumpCollisionResults.

setEnableTriggers

public void setEnableTriggers (final boolean enableTriggers)

Method setEnableTriggers.

Parameters:
final boolean enableTriggers

setEnableBlockDamage

public void setEnableBlockDamage (final boolean enableBlockDamage)

Method setEnableBlockDamage.

Parameters:
final boolean enableBlockDamage

willReceiveBlockDamage

public boolean willReceiveBlockDamage ()

Method willReceiveBlockDamage.

setAvoidingBlockDamage

public void setAvoidingBlockDamage (final boolean avoid)

Method setAvoidingBlockDamage.

Parameters:
final boolean avoid

isAvoidingBlockDamage

public boolean isAvoidingBlockDamage ()

Method isAvoidingBlockDamage.

processTriggers

public void processTriggers (@Nonnull final Ref ref, @Nonnull final CollisionResult collisionResult, final double t, @Nonnull final ComponentAccessor componentAccessor)

Method processTriggers.

Parameters:
@Nonnull final Ref ref
@Nonnull final CollisionResult collisionResult
final double t
@Nonnull final ComponentAccessor componentAccessor

Damage

public new Damage (Damage.NULL_SOURCE, DamageCause.ENVIRONMENT, (float)

Method Damage.

Parameters:
Damage.NULL_SOURCE Damage.NULL_SOURCE
DamageCause.ENVIRONMENT DamageCause.ENVIRONMENT
(float (float

isDebugMode

protected boolean isDebugMode (final RoleDebugFlags mode)

Method isDebugMode.

Parameters:
final RoleDebugFlags mode

isProcessTriggersHasMoved

public boolean isProcessTriggersHasMoved ()

Method isProcessTriggersHasMoved.

isAlive

protected boolean isAlive (@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)

Method isAlive.

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

activate

public void activate ()

Method activate.

resetNavState

public void resetNavState ()

Method resetNavState.

resetObstructedFlags

public void resetObstructedFlags ()

Method resetObstructedFlags.

deactivate

public void deactivate ()

Method deactivate.

getEpsilonSpeed

public double getEpsilonSpeed ()

Method getEpsilonSpeed.

getEpsilonAngle

public float getEpsilonAngle ()

Method getEpsilonAngle.

getComponentSelector

public Vector3d getComponentSelector ()

Method getComponentSelector.

getPlanarComponentSelector

public Vector3d getPlanarComponentSelector ()

Method getPlanarComponentSelector.

setComponentSelector

public void setComponentSelector (@Nonnull final Vector3d componentSelector)

Method setComponentSelector.

Parameters:
@Nonnull final Vector3d componentSelector

getWorldNormal

public Vector3d getWorldNormal ()

Method getWorldNormal.

getWorldAntiNormal

public Vector3d getWorldAntiNormal ()

Method getWorldAntiNormal.

waypointDistance

public double waypointDistance (@Nonnull final Vector3d p, @Nonnull final Vector3d q)

Method waypointDistance.

Parameters:
@Nonnull final Vector3d p
@Nonnull final Vector3d q

waypointDistanceSquared

public double waypointDistanceSquared (@Nonnull final Vector3d p, @Nonnull final Vector3d q)

Method waypointDistanceSquared.

Parameters:
@Nonnull final Vector3d p
@Nonnull final Vector3d q

isValidPosition

public boolean isValidPosition (@Nonnull final Vector3d position, @Nonnull final ComponentAccessor componentAccessor)

Method isValidPosition.

Parameters:
@Nonnull final Vector3d position
@Nonnull final ComponentAccessor componentAccessor

getInvalidOverlapMaterials

public int getInvalidOverlapMaterials ()

Method getInvalidOverlapMaterials.

saveMotionKind

protected void saveMotionKind ()

Method saveMotionKind.

switchedToMotionKind

protected boolean switchedToMotionKind (final MotionKind motionKind)

Method switchedToMotionKind.

Parameters:
final MotionKind motionKind

getMotionKind

public MotionKind getMotionKind ()

Method getMotionKind.

setMotionKind

public void setMotionKind (final MotionKind motionKind)

Method setMotionKind.

Parameters:
final MotionKind motionKind

getGravity

public double getGravity ()

Method getGravity.

setGravity

public void setGravity (final double gravity)

Method setGravity.

Parameters:
final double gravity

translateToAccessiblePosition

public boolean translateToAccessiblePosition (final Vector3d position, final Box boundingBox, final double minYValue, final double maxYValue, final ComponentAccessor componentAccessor)

Method translateToAccessiblePosition.

Parameters:
final Vector3d position
final Box boundingBox
final double minYValue
final double maxYValue
final ComponentAccessor componentAccessor

standingOnBlockOfType

public boolean standingOnBlockOfType (final int blockSet)

Method standingOnBlockOfType.

Parameters:
final int blockSet

requirePreciseMovement

public void requirePreciseMovement (@Nullable final Vector3d positionHint)

Method requirePreciseMovement.

Parameters:
@Nullable final Vector3d positionHint

clearRequirePreciseMovement

public void clearRequirePreciseMovement ()

Method clearRequirePreciseMovement.

isRequiresPreciseMovement

public boolean isRequiresPreciseMovement ()

Method isRequiresPreciseMovement.

requireDepthProbing

public void requireDepthProbing ()

Method requireDepthProbing.

clearRequireDepthProbing

public void clearRequireDepthProbing ()

Method clearRequireDepthProbing.

isRequiresDepthProbing

public boolean isRequiresDepthProbing ()

Method isRequiresDepthProbing.

enableHeadingBlending

public void enableHeadingBlending (final double heading, @Nullable final Vector3d targetPosition, final double blendLevel)

Method enableHeadingBlending.

Parameters:
final double heading
@Nullable final Vector3d targetPosition
final double blendLevel

clearBlendHeading

public void clearBlendHeading ()

Method clearBlendHeading.

setRelaxedMoveConstraints

public void setRelaxedMoveConstraints (final boolean relax)

Method setRelaxedMoveConstraints.

Parameters:
final boolean relax

isRelaxedMoveConstraints

public boolean isRelaxedMoveConstraints ()

Method isRelaxedMoveConstraints.

updatePhysicsValues

public void updatePhysicsValues (final PhysicsValues values)

Method updatePhysicsValues.

Parameters:
final PhysicsValues values