Utilizing the Geom entities instead of brushes

In this recipe, we will show you how to place a Geom entity in your level for later use in the FlowGraph, which will be handled in a different recipe.

Getting ready

  • Before we begin, you must have Sandbox 3 open
  • Then open My_Level.cry

How to do it...

  1. From the RollupBar, click Geom Entity.
  2. Place down the default/box object.
  3. Right-click the box object and select Create Flow Graph.
  4. Name your FlowGraph My_Box_FG.

How it works...

Using the Geom entities instead of standard brushes is usually reserved for when a designer wishes to perform some game logic or functions on an object. Anything from FlowGraph Scripting to Trackview animations requires the use of entities and cannot manipulate brushes.

Geom entities are very basic entities that can be of any object type (.cgf, .cga, .chr), whereas brushes are usually reserved for static meshes (.cgf). Even though Geom entities have very few properties associated with them, they are still entities within the world. And having too many entities in the world tends to add to a performance drop within the game. This is why static objects should always be brushes instead of Geom entities.

See also

  • The Creating a new Trackview Sequence recipe
  • The Game Logic Chapter recipe
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.135.249.220