public class PointMass extends Object
| Constructor and Description |
|---|
PointMass(com.almasb.fxgl.core.math.Vec2 position,
double damping,
double inverseMass) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyForce(com.almasb.fxgl.core.math.Vec2 force) |
com.almasb.fxgl.core.math.Vec2 |
getPosition() |
com.almasb.fxgl.core.math.Vec2 |
getVelocity() |
void |
increaseDamping(double factor) |
void |
update() |
public PointMass(com.almasb.fxgl.core.math.Vec2 position,
double damping,
double inverseMass)
public void applyForce(com.almasb.fxgl.core.math.Vec2 force)
public void increaseDamping(double factor)
public void update()
public com.almasb.fxgl.core.math.Vec2 getPosition()
public com.almasb.fxgl.core.math.Vec2 getVelocity()
Copyright © 2017. All rights reserved.