public class BodyMotionFlock extends BodyMotionBase
Class BodyMotionFlock. Provides bodymotionflock functionality for the Hytale server.
java.lang.Object > BodyMotionBase > BodyMotionFlock
Field Summary
flockMembership
final
FlockMembership
flockMembership
Field flockMembership.
flockReference
final
Ref
flockReference
Field flockReference.
entityGroup
final
EntityGroup
entityGroup
Field entityGroup.
componentSelector
final
Vector3d
componentSelector
Field componentSelector.
weightCohesion
final
double
weightCohesion
Field weightCohesion.
weightSeparation
final
double
weightSeparation
Field weightSeparation.
leaderRef
final
Ref
leaderRef
Field leaderRef.
sumOfPositions
final
Vector3d
sumOfPositions
Field sumOfPositions.
sumOfVelocities
final
Vector3d
sumOfVelocities
Field sumOfVelocities.
sumOfDistances
final
Vector3d
sumOfDistances
Field sumOfDistances.
leaderTransformComponent
final
TransformComponent
leaderTransformComponent
Field leaderTransformComponent.
position
final
Vector3d
position
Field position.
toLeader
final
Vector3d
toLeader
Field toLeader.
parentEntityTransformComponent
final
TransformComponent
parentEntityTransformComponent
Field parentEntityTransformComponent.
Method Detail
BodyMotionFlock
Method BodyMotionFlock.
- Parameters:
@Nonnull final BuilderBodyMotionFlockbuilderBodyMotionFlock
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 Refref@Nonnull final Rolerole@Nullable final InfoProvidersensorInfofinal doubledt@Nonnull final SteeringdesiredSteering@Nonnull final ComponentAccessorcomponentAccessor
Vector3d
public
new
Vector3d
(position.getX()
Method Vector3d.
- Parameters:
position.getX(position.getX(