I have checked out this tutorial about moving an object along a curve:
So far so good. I have two questions:
This tutorial describes how to create a curve in OmniGraph using “Transforms to Curve”. On this node I can use “Point on Curve” and assign the output to an Xform in my scene. Is it also possible to use a “BasisCurve” from Bezier tool or Pencil? I have tried to do so by dragging the curve from the scene into the Action Graph. But when I connect it to the “Point on Curve” Node, I get an error: Failed to find prim in input bundle with necessary curve attributes.
I would like the object that follows the curve to also roll over its forward axis. Think of a plane rolling while flying a curve. How is that possible using Curves and Action Graph (or in a different way)? The example in the video above sets the up input for the script node to be fixed in world upward direction.
Hello @bruno.vetter! I just wanted to let you know that I have a developer looking into this. They need to setup a set of nodes in order to do this, so I am waiting to hear back from them for an update.
Drag this additional transform node into action graph and write attribute too it.
You will be changing the rotation vector.
To achieve this - use Make 3-Vector node. Fill 2 vector components with constant rotation values and connect AnimationFrame (from OnTick node) into the vector component you would like to rotate.
If you would like to control the speed of the rotation use a Math node Multiply and adjust the AnimationFrame as you like. You can expose this as a public variable you can access from UI.