Vehicle Wrapper -- Blender 3D Game Engine


 
pageok

 
8.  Switch to State Mask Group 2

Note:
This tutorial uses State Mask Groups.
State Mask Group 1:  Car Setup  (CarSetup.py)
State Mask Group 2:  Tweak Suspension (Suspension.py)
State Mask Group 3:  Car controls.  (Powertrain.py)

Car selected

Buttons Window menu >> Logic (F4)
Sensors
Enable State button
Controllers
State GUI:  
State Mask Group 2
Actuators
Enable State button

  
9.  Add an Always Sensor to State Mask Group 2:  set to Run Once

Car selected

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




  
10.  Add a Python Controller to State Mask Group 2:  Use Suspension.py

Car selected

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


 

  
11.  Add an AND Controller to State Mask Group 2

Car selected

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



 
pageok