This tutorial shows how to update the position of a sphere in real time using a python script and the Blender game engine.
Key points –
How to set up logic bricks to control an object
How to write an ‘event handling’ routine in Python script
How to display values at run time in the system console
How to perform basic functions in Python
How to duplicate objects, logic bricks and Python scripts
In detail –
How to add and ‘Always’ logic brick sensor to a sphere, in pulse mode
How to ‘print’ an object’s position in the system console
How to change an objects position
How to create an object property
How to make a sphere bounce using two if statements
How to define functions to structure code
How to combine two conditions with logical OR
How to invert the sign of property
How to duplicate an object and modify the duplicate’s logic bricks and Python script
For the files and other resources go to the website –
http://blender.freemovies.co.uk
Voir sur youtube