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
Method BodyMotionTeleport.
- Parameters:
@Nonnull final BuilderBodyMotionTeleportbuilder
activate
public
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
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
Teleport
public
new
Teleport
(this.target, bodyRotation)
Method Teleport.
- Parameters:
this.targetthis.targetbodyRotationbodyRotation
tickCooldown
protected
boolean
tickCooldown
(final double dt)
Method tickCooldown.
- Parameters:
final doubledt
Orientation
public
private
Orientation
(final String description)
Method Orientation.
- Parameters:
final Stringdescription
get
public
String
get
()
Method get.