Package snap.view

Class ViewPhysics<T>

java.lang.Object
snap.view.ViewPhysics<T>

public class ViewPhysics<T> extends Object
A class to represents physical attributes of a view for the purpose of physics simulation.
  • Constructor Details

    • ViewPhysics

      public ViewPhysics()
  • Method Details

    • isDynamic

      public boolean isDynamic()
      Returns whether view is subject to forces in simulation.
    • setDynamic

      public void setDynamic(boolean aValue)
      Sets whether view is subject to forces in simulation.
    • isJoint

      public boolean isJoint()
      Returns whether view is a joint.
    • setJoint

      public void setJoint(boolean aValue)
      Sets whether view is a joint.
    • getDensity

      public double getDensity()
      Returns the body density.
    • setDensity

      public void setDensity(double aValue)
      Sets the body density.
    • getGroupIndex

      public int getGroupIndex()
      Returns the group index.
    • setGroupIndex

      public void setGroupIndex(int aValue)
      Sets the group index.
    • getNative

      public T getNative()
      Returns the native object.
    • setNative

      public void setNative(T anObj)
      Sets the native object.