BodyMotionTeleport

public class BodyMotionTeleport extends BodyMotionBase

Class BodyMotionTeleport. Provides bodymotionteleport functionality for the Hytale server.

java.lang.Object > BodyMotionBase > BodyMotionTeleport

Field Summary

tries

protected int tries

Field tries.

cooldown

protected double cooldown

Field cooldown.

offset

final double[] offset

Field offset.

dist

final double dist

Field dist.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

selfPosition

final Vector3d selfPosition

Field selfPosition.

distance

final double distance

Field distance.

maxOffset2

final double maxOffset2

Field maxOffset2.

motionController

final MotionController motionController

Field motionController.

boundingBoxComponent

final BoundingBox boundingBoxComponent

Field boundingBoxComponent.

bodyRotation

final Vector3f bodyRotation

Field bodyRotation.

x

final double x

Field x.

y

final double y

Field y.

z

final double z

Field z.

bodyRotation2

final Vector3f bodyRotation2

Field bodyRotation2.

targetRef

final Ref targetRef

Field targetRef.

targetTransformComponent

final TransformComponent targetTransformComponent

Field targetTransformComponent.

bodyRotation3

final Vector3f bodyRotation3

Field bodyRotation3.

Method Detail

BodyMotionTeleport

public public BodyMotionTeleport (@Nonnull final BuilderBodyMotionTeleport builder)

Method BodyMotionTeleport.

Parameters:
@Nonnull final BuilderBodyMotionTeleport builder

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

Teleport

public new Teleport (this.target, bodyRotation)

Method Teleport.

Parameters:
this.target this.target
bodyRotation bodyRotation

tickCooldown

protected boolean tickCooldown (final double dt)

Method tickCooldown.

Parameters:
final double dt

Orientation

public private Orientation (final String description)

Method Orientation.

Parameters:
final String description

get

public String get ()

Method get.