Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need c + + code this this question. MILESTONE 4 : FIRST CLASS ( 7 0 % + ) a . When randomly spawning

I need c++ code this this question. MILESTONE 4: FIRST CLASS (70%+)
a. When randomly spawning cubes, check to ensure that each cube is not within 10 units
of other cubes orin collision with the sphere. As long as (hint: while loop) the cube
being spawned is within 10 units of another cube or in collision with the sphere, a new
random position should be generated for the cube.
b. Instead of hiding picked up cubes, respawn them at a new random position and
ensure that the checksin 'a' above are performed. Consider utilising a single function
for spawning and respawning cubes.
c. Implement a "Hyper Mode" in which the sphere attracts cubes within a 50 unit radius:
iii. Add a special cube using "minicube. x" and "hypercube.jpg" as its skin at a
random position as in 'a'above.
iv. On picking up the special cube, the sphere should transition into a "Hyper" state
and its skin shouldchange to "hypersphere.jpg". The Hyper state should last for
5 seconds, after which the sphere should return to its "Regular" state.
v. In the Hyper state, the sphere should attract cubes that are within 50
units from its centre"magnetically", attracted cubes should "fly" into the
sphere before they are respawned.
image text in transcribed

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

Database Processing Fundamentals Design And Implementation

Authors: David M. Kroenke

5th Edition

B000CSIH5A, 978-0023668814

More Books

Students also viewed these Databases questions

Question

Prepare an electronic rsum.

Answered: 1 week ago

Question

Strengthen your personal presence.

Answered: 1 week ago

Question

Identify the steps to follow in preparing an oral presentation.

Answered: 1 week ago