hi everyone,
 
I could really do with some help in implementing collision :(
I have 2 objects, one in a static, fixed position and the other (a colorcube) moving towards it, I cannot seem to stop the moving object once it comes into contact/collides with the fixed one and it just passes through..
I thought of having  aboolean value which flagged true for a collision then stops the movement of the colorcube but i could not implememnt.
There is a demo which comes with J3d that detects collision - but not actually stops the moving object from passing through the static one.
I do not have much time left for this project and would really be grateful if someone could show me how to implement this.
 
I have included 2 simple files that I am working on.. one is a behavior class the other contains the main method.
Please can someone help?! :(
 
 
Shahbaz

pit.java

gsTimer.java

Reply via email to