CRE8OR - game maker for anim8or |
||
|
EVENTS
Add a scene and add this to the scene. Start a new project in Cre8or. Add Assign an an8 File. Select the An8 file of your plank. Go to your plank object and "Edit Physical" and make it a cube: Now I want the cube to spin around rapidly when you press the <Left> button. In the entity go to "Add Event" -> "Keyboard" -> "<Left>" This should pop up: Set Pitch/Tilt to 100. There are three values Pitch/Tilt (X-Axis), Yaw/Pan (Y-Axis), and Roll (Z-Axis). My plank was oriented so that I want it to spin around on the X-axis. Now run the project: And nothing happens (at least for me) when the <Left> is pressed. Why?Because the force is too little. Go back and double clikc the torque action. Try 50,000 that worked for me: Now run the project: Two things it spins uncontrollably when I want it to spin fast and I can't see it when is spins away. Let's fix those. Add a new event this time the "Entity" -> "Step" event: Now run the project: And the camera should always look at the plank. Damping prevents objects from excelerating, like when you fall from great heights you reach a terminal velocity bcause of the opposition of the atmosphere. |
|
Copyrights (C) 2007 Keith Tabert |
||