Page 4 de 10
- select your sun object,
- in the logic panel, add the following property :
. sunspeed(type:intl) - speed in second - set it to 3600
- start the G.E.
the sun animation step per tic is now 1 hour (60 secs x 60 mins)
- select your sun object,
- set sunspeed to - 3600
- start the G.E.
you got it
you can also play with the sensor pulse delay to slow down the animation (but not the sun animation step) :
.. or replace this sensor by a message sensor etc.
if you need to use the 'true' time (one second in the game engine equals one recond in the real life) :
- select your sun object,
- in the logic panel, add the following property :
. realsunspeed (type:Bool) - set it to True
- start the G.E.
look at the blender console
in this case you can increase the sensor pulse delay and check with the number of repeated lines in the console. try 60. you will gain some CPU cycles.
realsunspeed can be toggled True/False during the game, see next sections.