- 10.43am - Finished first task- now the program resets the simulation with different rotated plane and the ball back at starting position.
- 10.56am - I have randomised the velocity of the ball to float values in between -5 and 5. the position was also randomised initially this way however, sometimes it was rendered below the plane and although this is easy enough to fix (i.e. place some restrictions) i decided that exactly (0, 10, 0) is the perfect coordinates for it as it will always hit the plane with a good couple of bounces at least. this may change once the translation comes into play. this is what is next on the to do list.
- 12.10pm - OK, the translation is set in the code however, I'm not sure whether to use it or not as the majority of times, the ball never hits the plane. I think I may have to speak to Dr Lucas about this at some point. I could place the initial position of the ball to be exactly 10 above the planes position or give the coordinates of the particle the same translation. Again, this could work, however, more adjustment is needed for the camera too. i shall try this now.
- 12.46pm - It is now mucking up the collision detection. Therefore, an email has been sent to Dr Lucas, updating him on my progress and the problem I have had today. He is not in today but hopefully I will get a reply tomorrow. It has been commented out in the code in the meantime. I have also added code to make sure that when the ball falls below -100 in the y axis, that it stops the simulation, puts the ball back to its original position and then starts the simulation again with new velocities.
Thursday, 30 April 2009
Week 32: 27th April - 3rd May: Fun Programming Morning
Following my earlier list, I have completely so far two out of the three tasks.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment