Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Time Series Databases New Ways To Store And Access Data

Authors: Ted Dunning, Ellen Friedman

1st Edition

1491914726, 978-1491914724

More Books

Students also viewed these Databases questions