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 );
```
You might also like to view...
List and briefly describe the six functional characteristic categories that can be used to categorize access controls.
What will be an ideal response?
Living on the Cloud
What will be an ideal response?
When giving the user guidance (like tips) to help make a difficult choice, the guidance should be:
a. detailed b. complex c. unavoidable
The field of psychology that theorizes that happiness results from ethical living is known as
a. principled psychology. b. positive psychology. c. moral psychology. d. affirmative psychology.