net.jinx.physics.util
Class VisiblePhysical
java.lang.Object
net.jinx.action.Actor
net.jinx.action.VisibleActor
net.jinx.physics.util.VisiblePhysical
- All Implemented Interfaces:
- Physical, MultipassVisible, Visible
- Direct Known Subclasses:
- PhysicalSpark, PhysicalSphere
public class VisiblePhysical
- extends VisibleActor
- implements Physical
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
VisiblePhysical
public VisiblePhysical(Visible visible,
Vector position,
Vector velocity,
float mass)
VisiblePhysical
public VisiblePhysical(Visible visible)
VisiblePhysical
public VisiblePhysical(java.lang.String name,
Visible visible)
VisiblePhysical
public VisiblePhysical(java.lang.String name,
Visible visible,
PhysicalObject obj)
getPhysicalObject
public PhysicalObject getPhysicalObject()
- Specified by:
getPhysicalObject
in interface Physical
setPosition
public void setPosition(Vector p)
getPosition
public Vector getPosition()
setVelocity
public void setVelocity(Vector v)
getVelocity
public Vector getVelocity()
setMass
public void setMass(float mass)
getMass
public float getMass()
tag
public void tag(Tag tag)
draw
public void draw(Context opt)
- Description copied from class:
VisibleActor
- Redirects to the wrapped Visible.
- Specified by:
draw
in interface Visible
- Overrides:
draw
in class VisibleActor
- Parameters:
opt
- the Context object contaning rendering options.