Interface PositionedForce

All Known Implementing Classes:
PointAttractorForceModule, PointForceModule, SimplePositionedForce, VortexForceModule

public interface PositionedForce
  • Method Summary

    Modifier and Type
    Method
    Description
    org.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() is true
    • 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 X
      y - The new origin position Y
      z - 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