Interface PositionedForce
- All Known Implementing Classes:
PointAttractorForceModule
,PointForceModule
,SimplePositionedForce
,VortexForceModule
public interface PositionedForce
-
Method Summary
Modifier and TypeMethodDescriptionorg.joml.Vector3d
boolean
void
setForceOrigin
(double x, double y, double z) Directly sets the force origin to a global position.default void
setForceOrigin
(org.joml.Vector3dc pos) Directly sets the force origin to a global position.
-
Method Details
-
getPosition
org.joml.Vector3d getPosition()- Returns:
- The position of this force in emitter-relative space if
isLocalPosition()
istrue
-
isLocalPosition
boolean isLocalPosition()- Returns:
- Whether the position of this force is relative to the emitter
-
setForceOrigin
void setForceOrigin(double x, double y, double z) Directly sets the force origin to a global position.- Parameters:
x
- The new origin position Xy
- The new origin position Yz
- The new origin position Z
-
setForceOrigin
default void setForceOrigin(org.joml.Vector3dc pos) Directly sets the force origin to a global position.- Parameters:
pos
- The new origin position
-