public class BodyMotionPath extends BodyMotionBase
Class BodyMotionPath. Provides bodymotionpath functionality for the Hytale server.
java.lang.Object > BodyMotionBase > BodyMotionPath
Field Summary
currentWaypointIndex
Field currentWaypointIndex.
currentDirection
Field currentDirection.
visitIndex
Field visitIndex.
currentSpeed
Field currentSpeed.
nextPositionValid
Field nextPositionValid.
currentNodeDelay
Field currentNodeDelay.
pendingNodeDelay
Field pendingNodeDelay.
rotatingToView
Field rotatingToView.
nodeViewDirection
Field nodeViewDirection.
nodeWaitTime
Field nodeWaitTime.
observationSector
Field observationSector.
currentObservationDelay
Field currentObservationDelay.
rotating
Field rotating.
currentViewSegment
Field currentViewSegment.
delayScaleRange
Field delayScaleRange.
delayPercentRange
Field delayPercentRange.
info
Field info.
path
Field path.
numWaypoints
Field numWaypoints.
transformComponent
Field transformComponent.
position
Field position.
heading
Field heading.
activeMotionController
Field activeMotionController.
componentSelector
Field componentSelector.
worldSupport
Field worldSupport.
lastIndex
Field lastIndex.
wayPoint
Field wayPoint.
maxDistance
Field maxDistance.
distance
Field distance.
angle
Field angle.
fullSector
Field fullSector.
start
Field start.
segment
Field segment.
thisSegment
Field thisSegment.
pos
Field pos.
pathWaypoint
Field pathWaypoint.
pathWaypointPosition
Field pathWaypointPosition.
Method Detail
BodyMotionPath
public
BodyMotionPath
(@Nonnull final BuilderBodyMotionPath builder, @Nonnull final BuilderSupport support)
Method BodyMotionPath.
- Parameters:
@Nonnull final BuilderBodyMotionPathbuilder@Nonnull final BuilderSupportsupport
activate
void
activate
(@Nonnull final Ref ref, @Nonnull final Role role, @Nonnull final ComponentAccessor componentAccessor)
Method activate.
- Parameters:
@Nonnull final Refref@Nonnull final Rolerole@Nonnull final ComponentAccessorcomponentAccessor
computeSteering
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 Refref@Nonnull final Rolerole@Nullable final InfoProvidersensorInfofinal doubledt@Nonnull final SteeringdesiredSteering@Nonnull final ComponentAccessorcomponentAccessor
tickObservationDelay
boolean
tickObservationDelay
(final double dt)
Method tickObservationDelay.
- Parameters:
final doubledt
pickNextObservationAngle
void
pickNextObservationAngle
()
Method pickNextObservationAngle.
if
else
if
(this.viewSegments > 1)
Method if.
- Parameters:
this.viewSegments >1
closeToPosition
boolean
closeToPosition
(final Vector3d position, @Nonnull final MotionController motionController)
Method closeToPosition.
- Parameters:
final Vector3dposition@Nonnull final MotionControllermotionController
invalidateWaypoint
void
invalidateWaypoint
()
Method invalidateWaypoint.
nextWayPoint
boolean
nextWayPoint
(@Nonnull final IPath> path, @Nonnull final WorldSupport support, @Nonnull final ComponentAccessor componentAccessor)
Method nextWayPoint.
- Parameters:
@Nonnull final IPath>path@Nonnull final WorldSupportsupport@Nonnull final ComponentAccessorcomponentAccessor
getFirstWaypoint
boolean
getFirstWaypoint
(@Nonnull final Ref ref, @Nonnull final Role role, @Nullable final IPath> path, @Nonnull final Vector3d lastPos, @Nonnull final ComponentAccessor componentAccessor)
Method getFirstWaypoint.
- Parameters:
@Nonnull final Refref@Nonnull final Rolerole@Nullable final IPath>path@Nonnull final Vector3dlastPos@Nonnull final ComponentAccessorcomponentAccessor
waypointIndexUpdated
void
waypointIndexUpdated
(@Nonnull final IPath> path, @Nonnull final ComponentAccessor componentAccessor)
Method waypointIndexUpdated.
- Parameters:
@Nonnull final IPath>path@Nonnull final ComponentAccessorcomponentAccessor
initializeCurrentDirection
void
initializeCurrentDirection
()
Method initializeCurrentDirection.
reset
void
reset
()
Method reset.
Direction
private
Direction
(final String description)
Method Direction.
- Parameters:
final Stringdescription
get
String
get
()
Method get.
segments
line
segments
(last node leads to first node)
Method segments.
- Parameters:
last node leads to firstnode
Shape
private
Shape
(final String description)
Method Shape.
- Parameters:
final Stringdescription