User Tools

Site Tools


public:t-gede-15-1:lab3

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

public:t-gede-15-1:lab3 [2015/01/26 17:14]
marino [Lab Project]
public:t-gede-15-1:lab3 [2015/01/26 17:19] (current)
marino [Lab Project]
Line 53: Line 53:
 } }
 </code> </code>
-  - **Instantiate Effect and Update from FrameListener** Now you have to create an instance of your effect, passing the Cube entity into it's constructor, giving it initial position and velocity values, and finally make sure to call this effect's update function in every frame, e.g. inside the FrameListener's ''frameStarted'' method (note that you'll have to pass a pointer to this effect into the FrameListener constructor so that it knows about it). Don't forget to delete your effect instance in the destructor of your application!+  - **Instantiate Effect and Update from FrameListener** Now you have to create an instance of your effect, passing the Cube entity into it's constructor, giving it initial position and velocity values, and finally make sure to call this effect's update function in every frame, e.g. inside the FrameListener's ''frameStarted'' method (note that you'll have to pass a pointer to this effect into the FrameListener constructor so that it knows about it). Don't forget to delete your effect instance in the destructor of your application!  
 +  - **Make the cube move in a non linear path**, Now the cube moves linearly upward rotating around Sinbad, make the cube move non linearly, explore the use of cosine function with time on the cubes radius, height or velocity for interesting results.
  
 ===== Bonus points! ===== ===== Bonus points! =====
/var/www/ailab/WWW/wiki/data/pages/public/t-gede-15-1/lab3.txt · Last modified: 2015/01/26 17:19 by marino