Contents
- Description
- Nested Class Summary
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- getType()
- getSupportedMovementModes()
- getDefaultSpawnMovementModes()
- probeMove(Ref, ProbeMoveData, ComponentAccessor)
- isFastMotionKind(double)
- getDesiredVerticalRange(Ref, ComponentAccessor)
- getWanderVerticalMovementRatio()
- constrainRotations(Role, TransformComponent)
- getCurrentMaxBodyRotationSpeed()
- spawned()
- canSteer(Ref, ComponentAccessor)
- inAir()
- onGround()
- inWater()
- getCurrentSpeed()
- getCurrentTurnRadius()
- getMaxClimbAngle()
- getMaxSinkAngle()
- getMaximumSpeed()
- is2D()
- canRestAtPlace()
- getDesiredAltitudeWeight()
- getHeightOverGround()
- isHorizontalIdle(double)
- estimateVelocity(Steering, Vector3d)
- clearOverrides()
- setDesiredAltitudeOverride(double[])
- takeOff(Ref, double, ComponentAccessor)
- getExternalVelocityStopThresholdSquared()
- getDampingDeceleration()
Class MotionControllerFly
java.lang.Object
com.hypixel.hytale.server.npc.movement.controllers.MotionControllerBase
com.hypixel.hytale.server.npc.movement.controllers.MotionControllerFly
- All Implemented Interfaces:
MotionController, DebugSupport.DebugFlagsChangeListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface MotionController
MotionController.VerticalRange -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final doublestatic final Set<MovementMode> static final intstatic final Set<MovementMode> static final StringFields inherited from class MotionControllerBase
BISECT_DIST, DEBUG_APPLIED_FORCES, DEFAULT_BLOCK_DRAG, DOT_PRODUCT_EPSILON, FILTER_COEFFICIENT, FORCE_SCALE -
Constructor Summary
ConstructorsConstructorDescriptionMotionControllerFly(BuilderSupport builderSupport, BuilderMotionControllerFly builder) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancanSteer(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) voidvoidconstrainRotations(Role role, TransformComponent transform) booleanestimateVelocity(Steering steering, org.joml.Vector3d velocityOut) doubledoubledoubledoubledoublegetDesiredVerticalRange(Ref<EntityStore> ref, ComponentAccessor<EntityStore> componentAccessor) doubledoublefloatdoublefloatgetType()doublebooleaninAir()booleaninWater()booleanis2D()booleanisFastMotionKind(double speed) booleanisHorizontalIdle(double speed) booleanonGround()doubleprobeMove(Ref<EntityStore> ref, ProbeMoveData probeMoveData, ComponentAccessor<EntityStore> componentAccessor) voidsetDesiredAltitudeOverride(double[] desiredAltitudeOverride) voidspawned()voidtakeOff(Ref<EntityStore> ref, double speed, ComponentAccessor<EntityStore> componentAccessor) Methods inherited from class MotionControllerBase
activate, addVelocity, applyRailStep, beforeInstructionMotion, beforeInstructionSensorsAndActions, bisect, bisect, canSteerFailReason, clearBlendHeading, clearExternalForces, clearExternalVelocity, clearRequirePreciseMovement, deactivate, enableHeadingBlending, enableHeadingBlending, getCollisionBoundingBox, getCombinedExternalVelocityLength, getComponentSelector, getEpsilonAngle, getEpsilonSpeed, getExternalVelocity, getGravity, getInvalidOverlapMaterials, getMotionKind, getNavState, getPitch, getPlanarComponentSelector, getRelaxedConstraints, getRole, getRoll, getTargetDeltaSquared, getThrottleDuration, getWorldAntiNormal, getWorldNormal, getYaw, isAvoidingBlockDamage, isForcePushed, isForceRecomputePath, isInProgress, isMovementBlocked, isObstructed, isProcessTriggersHasMoved, isRequiresPreciseMovement, isValidPosition, isValidPosition, moveEntity, onDebugFlagsChanged, postReadPosition, preScaleKnockback, probeMove, processTriggers, requirePreciseMovement, resetNavState, resetObstructedFlags, setComponentSelector, setDebugEntityId, setEnableBlockDamage, setEnableTriggers, setForceRecomputePath, setGravity, setHeadPitchAngleRange, setInertia, setKnockbackScale, setMotionKind, setNavState, setRelaxedMoveConstraints, setRole, setUseFixedKnockback, setVelocity, setVelocity, standingOnBlockOfType, steer, steer0, touchesWater, translateToAccessiblePosition, updateModelParameters, updateMovementState, updatePhysicsValues, waypointDistance, waypointDistance, waypointDistanceSquared, waypointDistanceSquared, willReceiveBlockDamageMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MotionController
addVelocity, getMaxClimbHeight, getMaxDropHeight, getSquaredDistance, matchesType
-
Field Details
-
TYPE
- See Also:
-
SUPPORTED_MOVEMENT_MODES
-
DEFAULT_SPAWN_MOVEMENT_MODES
-
DAMPING_FACTOR
public static final double DAMPING_FACTOR- See Also:
-
COLLISION_MATERIALS_PASSIVE
public static final int COLLISION_MATERIALS_PASSIVE- See Also:
-
COLLISION_MATERIALS_ACTIVE
public static final int COLLISION_MATERIALS_ACTIVE- See Also:
-
MAX_ALTITUDE_SEARCH_DISTANCE
public static final int MAX_ALTITUDE_SEARCH_DISTANCE- See Also:
-
-
Constructor Details
-
MotionControllerFly
public MotionControllerFly(@Nonnull BuilderSupport builderSupport, @Nonnull BuilderMotionControllerFly builder)
-
-
Method Details
-
getType
-
getSupportedMovementModes
-
getDefaultSpawnMovementModes
-
probeMove
public double probeMove(@Nonnull Ref<EntityStore> ref, @Nonnull ProbeMoveData probeMoveData, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
isFastMotionKind
public boolean isFastMotionKind(double speed) -
getDesiredVerticalRange
public MotionController.VerticalRange getDesiredVerticalRange(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
getWanderVerticalMovementRatio
public double getWanderVerticalMovementRatio() -
constrainRotations
-
getCurrentMaxBodyRotationSpeed
public double getCurrentMaxBodyRotationSpeed() -
spawned
public void spawned() -
canSteer
public boolean canSteer(@Nonnull Ref<EntityStore> ref, @Nonnull ComponentAccessor<EntityStore> componentAccessor) - Specified by:
canSteerin interfaceMotionController- Overrides:
canSteerin classMotionControllerBase
-
inAir
public boolean inAir() -
onGround
public boolean onGround() -
inWater
public boolean inWater() -
getCurrentSpeed
public double getCurrentSpeed() -
getCurrentTurnRadius
public double getCurrentTurnRadius() -
getMaxClimbAngle
public float getMaxClimbAngle() -
getMaxSinkAngle
public float getMaxSinkAngle() -
getMaximumSpeed
public double getMaximumSpeed() -
is2D
public boolean is2D() -
canRestAtPlace
public boolean canRestAtPlace() -
getDesiredAltitudeWeight
public double getDesiredAltitudeWeight() -
getHeightOverGround
public double getHeightOverGround() -
isHorizontalIdle
public boolean isHorizontalIdle(double speed) - Overrides:
isHorizontalIdlein classMotionControllerBase
-
estimateVelocity
-
clearOverrides
public void clearOverrides() -
setDesiredAltitudeOverride
public void setDesiredAltitudeOverride(double[] desiredAltitudeOverride) -
takeOff
public void takeOff(@Nonnull Ref<EntityStore> ref, double speed, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
getExternalVelocityStopThresholdSquared
public double getExternalVelocityStopThresholdSquared() -
getDampingDeceleration
public double getDampingDeceleration()
-