SGPhysics
Class PointAttractor

java.lang.Object
  extended by SGPhysics.PointAttractor
All Implemented Interfaces:
Force

public class PointAttractor
extends java.lang.Object
implements Force


Field Summary
 int active
           
 float mass
           
 Tuple.Tuple3f pos
           
 
Constructor Summary
PointAttractor(Tuple.Tuple3f pos, float mass, PhysicsEngine PE)
          Creates a new instance of LinearForce
 
Method Summary
 void apply(DynamicBody body)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pos

public Tuple.Tuple3f pos

active

public int active

mass

public float mass
Constructor Detail

PointAttractor

public PointAttractor(Tuple.Tuple3f pos,
                      float mass,
                      PhysicsEngine PE)
Creates a new instance of LinearForce

Method Detail

apply

public void apply(DynamicBody body)
Specified by:
apply in interface Force