Vehicle Wrapper -- Blender 3D Game Engine

 


pageok

  
9.  Add an Always Sensor:  set to Run Once

Car selected

Buttons Window menu >> Logic (F4)
Sensors
Add
Always
Set to Run Once


   
10.  Add a Python Controller:  Use CarSetup.py

Car selected

Buttons Window menu >> Logic (F4)
Controllers
Add
Python
Script:  CarSetup.py

 
  
11.  Add an AND Controller

Car selected

Buttons Window menu >> Logic (F4)
Controllers
Add
AND 


 
   
12.  Add an State Actuator

Note:
We will use the State Actuator to switch from State Mask Group 1 (car setup) to State Mask Group 2 (car suspension).  

Car selected

Buttons Window menu >> Logic (F4)
Actuators
Add
State:
Bit Operation:  Cpy
State Mask Group: 2

 
  
13.  Connect the Always Sensor to the Python Controller
      Connect the Always Sensor to the AND Controller
      Connect the AND Controller to the State Actuator

Car selected

Buttons Window menu >> Logic (F4)
Pull wire from brass bump to brass dimple


   
14.  Test:  Start Game Engine

Start Game Engine
P key
or
User Preference menu >> Game >> Start Game

 

 
  
pageok