3
$\begingroup$

I animated a rollercoaster using a Bezier Curve and a Follow Path Constraint affecting the vehicle. Then I tried to use the automatically created action in the game engine but the Action Actuator has no effect .

  • How can this action be used in the BGE?
  • Can the Path Animation alternatively be converted into keyframes?

enter image description here

$\endgroup$
  • $\begingroup$ You might be interested in this $\endgroup$ – gandalf3 Sep 16 '13 at 21:30
5
$\begingroup$

You can convert actions such as constraints to keyframes with Object > Animation > Bake action. (see this)

enter image description here

You may want to enable Clear parents to replace parent/child with keyframes:

enter image description here

Also note that without Clear Constraints enabled, constraints will not be removed, possibly giving unexpected results.

$\endgroup$
  • $\begingroup$ Thanks for your quick response, which object(s) should be selected when baking the action? Baking the constraint leads to strange offsets which can't be relocated perhaps swaped axis. Baking the bezier-curve seems to move around the current position. $\endgroup$ – stacker Sep 16 '13 at 21:17
  • $\begingroup$ @stacker The object following the path should be baked. Make sure you remove the constraint(s) afterwards $\endgroup$ – gandalf3 Sep 16 '13 at 21:23
  • $\begingroup$ Now the vehicle moves as expected, the view from the camera which is parented to the vehicle seems to be on the wrong track, but this would be another question. Thanks this helped much, everyday another mighty tool. $\endgroup$ – stacker Sep 16 '13 at 21:29
  • $\begingroup$ @stacker you might be able to fix that by enabling clear parents (I just tested and it seems to work) you can also automatically remove the constraints with clear constraints $\endgroup$ – gandalf3 Sep 16 '13 at 21:36
  • $\begingroup$ Sorry that was one of my scripts for the (currently unpluged) head tracker it changed camera orientation to some weird settings. Now its fun, thanks again. $\endgroup$ – stacker Sep 16 '13 at 21:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.