...
In the new version of Miarmy 4.5, we can detect and feel any geometry and interactive with it. We can achieve the roller coaster effect easily.
Reference: Geometry Logic Sentence
Maya Geometry >
- I'm higher than geometry:??? distance > 0
- I'm higher than geometry:??? distance < 0
- higher geometry:??? on LEFT
- higher geometry:??? on RIGHT
- I'm on geometry:??? UPHILL
- I'm on geometry:??? DOWNHILL
Prerequirements
Example
In below example we'll show you how to create the roller coaster by curve pin and geometry logic.
Create a geometry and a curve match the track.
Use curve pin, the agents will follow the curve, but they have wrong roll directions.
So let's create two decision nodes to fix the roll:
Now, wee get the right roll,
I'm higher than geometry:??? distance > 0 geometry is lower than the agent.
I'm higher than geometry:??? distance < 0 geometry is higher than the agent.
higher geometry:??? on LEFT
higher geometry:??? on RIGHT
I'm on geometry:??? UPHILL
I'm on geometry:??? DOWNHILL