1package com.fs.starfarer.api.util;
3import org.lwjgl.util.vector.Vector2f;
5import com.fs.starfarer.api.campaign.SectorEntityToken;
9 public static interface EngineGlowControls {
10 void showAccelerating();
12 void showSuppressed();
13 void showOtherAction();
29 float turnAccel,
float maxTurnRate,
float accel,
float maxSpeed) {
84 if (
entity.getOrbit() !=
null) {
94 if (
entity.getVelocity().length() > 0) {
107 if (
entity.getOrbit() ==
null) {
112 dest.scale(100000000f);
void moveInDirection(float dir)
EngineGlowControls getEngineGlow()
void setLocation(Vector2f loc)
boolean turnThenAccelerate
SmoothMovementUtil getMovementUtil()
SmoothMovementUtil movementUtil
EngineGlowControls engineGlow
void advance(float amount)
void setFaceInOppositeDirection(boolean faceInOppositeDirection)
SmoothFacingUtil facingUtil
static float DIRECTION_UNSET
boolean isTurnThenAccelerate()
boolean isFaceInOppositeDirection()
SmoothFacingUtil getFacingUtil()
SectorEntityToken getEntity()
Vector2f getPointInDirectionOppositeToVelocity()
void setVelocity(Vector2f vel)
CampaignEntityMovementUtil(SectorEntityToken entity, float turnAccel, float maxTurnRate, float accel, float maxSpeed)
void setFacing(float facing)
void moveToLocation(Vector2f loc)
void setEngineGlow(EngineGlowControls engineGlow)
boolean isDesiredFacingSet()
void setTurnThenAccelerate(boolean turnThenAccelerate)
boolean faceInOppositeDirection
static Vector2f getUnitVectorAtDegreeAngle(float degrees)
static float getAngleDiff(float from, float to)
static float getAngleInDegrees(Vector2f v)
static Vector2f normalise(Vector2f v)
void advance(float desiredFacing, float amount)
void setFacing(float facing)
void setDest(Vector2f dest, Vector2f destVel)
void advance(float amount)
void setMaxSpeed(float maxSpeed)
void setAcceleration(float acceleration)
void add(T item, float time)