|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use CollisionObject | |
---|---|
physics |
Uses of CollisionObject in physics |
---|
Methods in physics with parameters of type CollisionObject | |
---|---|
void |
CollisionGroup.add(CollisionObject co)
Adds a CollisionObject to the CollisionGroup |
void |
StraightMotion.bounce(CollisionObject col)
A bounce for this motion |
void |
NullMotion.bounce(CollisionObject c)
|
abstract void |
IMotion.bounce(CollisionObject col)
Override to create a bounce for this motion when it collides with col |
void |
GravityMotion.bounce(CollisionObject co)
A bounce for this motion |
void |
FrictionMotion.bounce(CollisionObject col)
A bounce for this motion |
void |
FrictionMotion.calculateMomentum(CollisionObject col)
Calculates the momentum of this object using the line formulas and the angle of collision |
void |
CollisionObject.collisionReact(CollisionObject co)
Changes the collided boolean value to false Must be overridden to do more |
void |
CollisionGroup.remove(CollisionObject co)
Removes the CollisionObject from the group |
void |
StraightMotion.stillCollide(CollisionObject col)
Check to see if the object with this motion and col are still colliding and if so move them apart |
void |
FrictionMotion.stillCollide(CollisionObject col)
Checks to see if the object that has this motion, and the param are still colliding, and if so moves them apart |
void |
IMotion.switchMomentum(double d,
CollisionObject c)
Override to do something useful |
void |
FrictionMotion.switchMomentum(double m,
CollisionObject col)
Switchs the momentum of the the object with this motion and col |
Constructors in physics with parameters of type CollisionObject | |
---|---|
FrictionMotion(CollisionObject colOb)
Creates a new FrictionMotion instance. |
|
GravityMotion(CollisionObject colOb)
Creates a new GravityMotion instance. |
|
NullMotion(CollisionObject colOb)
Creates a new NullMotion instance. |
|
StraightMotion(CollisionObject colOb)
Creates a new StraightMotion instance. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |