Starsector API
Loading...
Searching...
No Matches
com.fs.starfarer.api.util.SmoothMovementUtil Class Reference

Public Member Functions

float getHardSpeedLimit ()
 
void setHardSpeedLimit (float hardSpeedLimit)
 
 SmoothMovementUtil ()
 
void setDest (Vector2f dest, Vector2f destVel)
 
void advance (float amount)
 
ReadableVector2f getAccelVector ()
 
float getAcceleration ()
 
void setAcceleration (float acceleration)
 
float getMaxSpeed ()
 
void setMaxSpeed (float maxSpeed)
 
Vector2f getVelocity ()
 
Vector2f getLocation ()
 
Vector2f getDest ()
 

Protected Attributes

Vector2f vel = new Vector2f()
 
Vector2f loc = new Vector2f()
 
Vector2f accel = new Vector2f()
 
Vector2f dest = new Vector2f()
 
Vector2f destVel = new Vector2f()
 
float acceleration
 
float maxSpeed
 
boolean smoothCap = false
 
float hardSpeedLimit = -1f
 

Detailed Description

Definition at line 6 of file SmoothMovementUtil.java.

Constructor & Destructor Documentation

◆ SmoothMovementUtil()

com.fs.starfarer.api.util.SmoothMovementUtil.SmoothMovementUtil ( )

Definition at line 28 of file SmoothMovementUtil.java.

Member Function Documentation

◆ advance()

void com.fs.starfarer.api.util.SmoothMovementUtil.advance ( float  amount)

Definition at line 49 of file SmoothMovementUtil.java.

◆ getAcceleration()

float com.fs.starfarer.api.util.SmoothMovementUtil.getAcceleration ( )

Definition at line 191 of file SmoothMovementUtil.java.

◆ getAccelVector()

ReadableVector2f com.fs.starfarer.api.util.SmoothMovementUtil.getAccelVector ( )

Definition at line 187 of file SmoothMovementUtil.java.

◆ getDest()

Vector2f com.fs.starfarer.api.util.SmoothMovementUtil.getDest ( )

Definition at line 215 of file SmoothMovementUtil.java.

◆ getHardSpeedLimit()

float com.fs.starfarer.api.util.SmoothMovementUtil.getHardSpeedLimit ( )

Definition at line 20 of file SmoothMovementUtil.java.

◆ getLocation()

Vector2f com.fs.starfarer.api.util.SmoothMovementUtil.getLocation ( )

Definition at line 211 of file SmoothMovementUtil.java.

◆ getMaxSpeed()

float com.fs.starfarer.api.util.SmoothMovementUtil.getMaxSpeed ( )

Definition at line 199 of file SmoothMovementUtil.java.

◆ getVelocity()

Vector2f com.fs.starfarer.api.util.SmoothMovementUtil.getVelocity ( )

Definition at line 207 of file SmoothMovementUtil.java.

◆ setAcceleration()

void com.fs.starfarer.api.util.SmoothMovementUtil.setAcceleration ( float  acceleration)

Definition at line 195 of file SmoothMovementUtil.java.

◆ setDest()

void com.fs.starfarer.api.util.SmoothMovementUtil.setDest ( Vector2f  dest,
Vector2f  destVel 
)

Definition at line 34 of file SmoothMovementUtil.java.

◆ setHardSpeedLimit()

void com.fs.starfarer.api.util.SmoothMovementUtil.setHardSpeedLimit ( float  hardSpeedLimit)

Definition at line 24 of file SmoothMovementUtil.java.

◆ setMaxSpeed()

void com.fs.starfarer.api.util.SmoothMovementUtil.setMaxSpeed ( float  maxSpeed)

Definition at line 203 of file SmoothMovementUtil.java.

Member Data Documentation

◆ accel

Vector2f com.fs.starfarer.api.util.SmoothMovementUtil.accel = new Vector2f()
protected

Definition at line 10 of file SmoothMovementUtil.java.

◆ acceleration

float com.fs.starfarer.api.util.SmoothMovementUtil.acceleration
protected

Definition at line 15 of file SmoothMovementUtil.java.

◆ dest

Vector2f com.fs.starfarer.api.util.SmoothMovementUtil.dest = new Vector2f()
protected

Definition at line 12 of file SmoothMovementUtil.java.

◆ destVel

Vector2f com.fs.starfarer.api.util.SmoothMovementUtil.destVel = new Vector2f()
protected

Definition at line 13 of file SmoothMovementUtil.java.

◆ hardSpeedLimit

float com.fs.starfarer.api.util.SmoothMovementUtil.hardSpeedLimit = -1f
protected

Definition at line 18 of file SmoothMovementUtil.java.

◆ loc

Vector2f com.fs.starfarer.api.util.SmoothMovementUtil.loc = new Vector2f()
protected

Definition at line 9 of file SmoothMovementUtil.java.

◆ maxSpeed

float com.fs.starfarer.api.util.SmoothMovementUtil.maxSpeed
protected

Definition at line 15 of file SmoothMovementUtil.java.

◆ smoothCap

boolean com.fs.starfarer.api.util.SmoothMovementUtil.smoothCap = false
protected

Definition at line 16 of file SmoothMovementUtil.java.

◆ vel

Vector2f com.fs.starfarer.api.util.SmoothMovementUtil.vel = new Vector2f()
protected

Definition at line 8 of file SmoothMovementUtil.java.


The documentation for this class was generated from the following file: