Finally I use trigonometry...
I didn't get any FYP work done this week due in part to:1) work work (2 client jobs),
2) school work (TWC project, AA project and PSMB project),
3) and also in part due to X-men Legends 2: Rise of Apocalypse.
I did however manage to code a algo for launching multiple projectiles at a target. It's quite simple really. Just get a missile to fly in a straight line to its target, then adjust the vertical movement by adding or subtracting half a sine function operating on the percentage of the horizontal movement completed.
Basically:
missileHeight = missileHeight + regular vertical movement + sine displacement
Check out the real thingy here: Leonard's Multi-Missiles Demo
You might notice that the flight path of the outer missiles makes a very sharp corner. This is after Carrie pointed that out and I tweaked it by lowering the sine coefficient of the outer 2 paths. Perhaps I need a more rounded curve formula than sine. Any suggestions?
Anyway, I'm officially coding the weapon effects for my company's game engine. Guess that means I'll be using alot of physics and mathematics over the hols. Well, I finally put the stuff I learnt in JC to good use. Did I also mention I programmed an economy in July? That's my econs knowledge put to good use.
Oh yeah, this came in the mail too:
Hi Leonard
On behalf of the IT Leader Awards Committee, I am pleased to
inform you that you have been shortlisted as one of the finalists
for the IT Youth Award 2006.
Interviews will be arranged for the Panel of Judges to meet the
finalists to get a better understanding of their works.
We have scheduled an interview for you on Thu 10 Nov,
5.00 pm at the SCS office at 53 Neil Road. The interview should
take approximately 10 - 15 mins. Please confirm that you would
be able to attend the interview at the assigned time.
Should you have further queries, please do not hesitate to contact
me.
Best regards
Claudia Lim
Event & Corp Comms Manager
Singapore Computer Society
I guess I should be emailing Prof. Desai and my Dean to thank them for giving me a good testimonial. Then again maybe they already know I've been shortlisted.

0 Comments:
Post a Comment
<< Home