http://jerome.le.chat.free.fr

Accueil > Blender > Scripts > Sun Engine - vitesse de révolution du soleil

Sun Engine - vitesse de révolution du soleil

Index de l'article
Sun Engine
latitude et longitude
configurer la date et l'heure
vitesse de révolution du soleil
configuration avancée
modifier la vitesse de révolution du soleil pendant le jeu
afficher la date et l'heure dans le jeu
intégration du script
mécanisme alternatif pour la position du soleil
réference des objets et des propriétés

  • 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) :


change the pulse delay

.. 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.



Mise à jour le Vendredi, 23 Octobre 2009 14:20