Question: C . Sketch the main game loop to model the uniform motion of a particle starting from ( 0 , 0 , 0 ) in

C. Sketch the main game loop to model the uniform motion of a particle starting from (0,0,0)
in the direction specified by vector (1,2,3) with a constant speed of 5 units per second.
You answer should take the frame rate into account.
Let pos :=(0,0,0)
Let U:=(1,2,3). normalize ()
While (loop not finished)
-pos:=pos+5**tpf**U
D:A ball with coordinates (5,2,0) moves uniformly with a constant speed given by vector (2,0,0).(a) Sketch the main game loop to model the uniform motion of the ball. You answer should take the frame rate into account. 5 marks PAPER CODE COMP222 page 8 of Let pos :=(5,2,0) Let V :=(2,0,0) While (loop not finished) pos := pos +5 tpf V
EndWhile
I have a question what is the difference between the two c,d and why the answer in questionc normalize and the answer in d the v did not normalize, and what the meaning of 5, is it the speed? But if 5 is the speed, the speed in d is 2 who can help me

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!