Package snap.view
Class ViewPhysics<T>
java.lang.Object
snap.view.ViewPhysics<T>
A class to represents physical attributes of a view for the purpose of physics simulation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the body density.int
Returns the group index.Returns the native object.boolean
Returns whether view is subject to forces in simulation.boolean
isJoint()
Returns whether view is a joint.void
setDensity
(double aValue) Sets the body density.void
setDynamic
(boolean aValue) Sets whether view is subject to forces in simulation.void
setGroupIndex
(int aValue) Sets the group index.void
setJoint
(boolean aValue) Sets whether view is a joint.void
Sets the native object.
-
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
Returns the native object. -
setNative
Sets the native object.
-