Creating Primitives

Revision as of 17:56, 12 May 2012 by imported>David Brasher (→‎More Information: Link not right.)


Overview

The Creation Kit features editor-created primitives which can be non-uniformly scaled. These find their primary use in the creation of trigger volumes, collision volumes, multibounds, and occlusion planes.

This is a quick tutorial on the creation of these primitives.

Creating a Primitive

 
Creating a Primitive from Scratch
 
Creating a Primitive from a Selection

To create a Collision Cube simply click the   button and then click somewhere in the Render Window. Click on the   button to create a Trigger Volume instead. This will drop a Primitive with the Scale Gizmo enabled. Now just simply drag the Gizmo arrows to scale the Primitive in that direction.


  To toggle the scale gizmo on and off, press the 2 key.


Another way to create a primitive, most useful when making Room Bounds or Triggers, is to have a reference in the Render Window selected when clicking the button of the type of Primitive you want to create. This will create the Primitive at the origin of the selected reference, and at the size of that reference's bounds.

If your primitive isn't visible, you may have marker viewing turned off. Try toggling the "M" key.




Primitive Properties

Access the Primitive's Properties by double-clicking on the primitive and clicking the "Primitive" tab.

  • Primitive Type: Shows whether the current Primitive is a Box or Sphere.
  • Collision layer: Sets which collision layer this primitive is.
    • For Collision Primitives this declares what type of objects can collide with this primitives.
    • For Trigger Primitives this declares what types of objects send an event when inside the trigger.
  • Player Activation: This only works for Triggers and allows the player to get a prompt when his cursor is over the Trigger, which can then be activated by the player and sends an OnActivate event.
    • The prompt will be the name on the trigger/activator base object
    • There appears to be a bug where the trigger is impossible to activate if its Z rotation is at 0 degrees.
  • Origin X/Y/Z/: Where the origin of this primitive is located
  • Bounds X/Y/Z: The size of this primitive on all axis'.
  • Color: The RGB values of this primitives color.
  • Select: Click this to open the color picker for an easy way to set this primitive's color.










More Information

How to make A Trigger That Detects When The Player Enters.