Write statements to accomplish each of the following:

a) Attach an Entity pointer named entityPtr to a SceneNode pointer name nodePtr.
b) Scale the Entity from the previous question to half its original size.
c) Create the Sound sample that loops the sound.wav file.
d) If the spacebar is being pressed, set the value of the int number to 0.
e) Set an Overlay Element to position itself relative to the size of its parent Container.
f) Add a folder named sounds in the media folder as a "General" resource location.
g) Move a SceneNode 15 units left, 4 units up and 8 units toward you.

a) ```
nodePtr->attachObject( entityPtr );
```
b) ```
nodePtr->setScale( .5, .5, .5 );
```
c) ```
soundManagerPtr->createSound( "sample", "sound.wav", true );
```
d) ```
if ( keyEvent.key == OIS::KC_SPACE )
number = 0;
```
e) ```
metrics_mode relative;
```
f) ```
ResourceGroupManager::getSingleton().addResourceLocation( "media/sounds",
"FileSystem", "General" );
```
g) ```
sceneNodePtr->translate( -15, 4, 8 );
```

Computer Science & Information Technology

You might also like to view...

Headphones are an example of ___

a. an input device b. an output device c. a processor d. a storage device

Computer Science & Information Technology

?You joined an agriculture business as an Assistant Marketing Manager and you are full of ideas on how to improve sales. When you voiced your thoughts to your boss, she mentions "do not reinvent the wheel". It means _______.

A. ?do not bring new ideas, since this is an old company B. before starting any new project, try to build on expertise and knowledge of others in the organization C. the wheels of innovation have already been created in the organization D. currently there is not adequate budget to explore new ideas

Computer Science & Information Technology