Customize a Terrain with Collision Detection

If props are added, they can be made part of the terrain. If the prop is high enough, then the actor will not be able to pass through it if the Collision setting is on.

Customize a Terrain with Collision Detection

  1. Follow the step 1 and 2 above.

  2. Select the prop you want to be a block to hinder the moving object, such as a wall.

  3. Go to Set/Props/Modify page. In the Prop section, check Collision box.

  4. Click the right button of your mouse on the prop and select Add to Terrain in the right-click menu .

  5. In the Director Mode, direct the moving object to try to move through the terrain wall.

Click on the position of the arrow to set the destination to which the actor walks

The actor will try to bypass the wall as it detects the collision.

The Collision of the wall is Unchecked

The Collision of the wall is Checked

Note:

  • It is like adding a sensor in front of the Actors or iProps, iClone probes the distance that is blocked ahead of these two types of objects and determines whether to stop or bypass the object that is blocking it.

  • The probe distance is starting from the pivot of the object.

  • Technique to Set Blockage

    If you convert a prop to part of the terrain but still want the actor or iProp to be able to pass through the holes or gates on the prop, you will not be able to achieve this just by turning on the Collision Detection. In this section, we will show you how to achieve this goal by using hidden 3D blocks to set the Collision Detection.

    1. Please apply the Arc de Triomphe prop into project.

    2. Turn on the Collision of it and Add to Terrain.

    1. Command the actor move through the gate to the place marked with a blue circle.

    You will find the actor stops in front of the gate instead of passing through it. This is because we turned on the Collision detection and the prop generates blockage according to it's entire bounding mesh.

    The actor stops in front of the prop.

    The blockage of the prop.


    To solve this problem, please follow the steps below.

    1. Apply the Arc de Triomphe into project.

    2. Do Not Turn On the Collision and Add to Terrain. This will allow the actors or iProps to pass through it.

    3. Apply two 3D Blocks to the project. Adjust the size and the location of the blocks.

    1. Set the Opacity of them to 0.

    2. Turn their Collision on and then Add to Terrain.

    The blockage of the two 3D block props.

    The actor may now pass through the gate.