Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

Curve Pin

 

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.

Image Added

 

Use curve pin, the agents will follow the curve, but they have wrong roll directions.

Image Added

 

So let's create two decision nodes to fix the roll:

Image Added

 

Now, wee get the right roll,

Image Added

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

Image Added

higher geometry:??? on RIGHT

Image Added

 

I'm on geometry:??? UPHILL

Image Added

 

I'm on geometry:??? DOWNHILL

Image Added