IN THIS ARTICLE
Axis Aligned Box Shape Component
The Axis Aligned Box Shape component creates a transparent box that is always axis aligned. The dimensions of the box can be edited with the Dimensions property or by entering edit mode. The Axis Aligned Box Shape component is not a mesh, but rather a helper geometry that can be used to define volumes for terrain, fog, spawners, shape gradients, audio, vegetation, PhysX, and any application that can utilize the Shape EBus. For more information on using Shape components, see Shape components .
|Visible||Enable to always display the shape in the viewport, even when the entity is not selected. Disable to hide the shape when the entity is not selected.||Boolean|
|Game View||Enable to display the shape while in game mode.||Boolean|
|Filled||Enable to display the shape as filled. Disable to display the shape as a wireframe.||Boolean|
|Shape Color||The color of the shape.||Eight bits per channel color: 0-255|
|Dimensions||The size of the shape in the X, Y and Z dimensions of local space.||Vector3: -Infinity to Infinity||X:|
|Edit||Choose the Edit button to enter Edit mode. In Edit mode, you can modify the dimensions of the shape in the viewport using the methods outlined in Edit mode actions below. While in Edit mode, the Edit menu in the menu bar displays available actions and hotkeys. To exit Edit mode, choose Done in the component interface.|
- Left-click and drag the black handles on the sides of the Axis Aligned Box Shape to resize the box in its local X, Y, and Z dimensions.
Use the following request functions with the
BoxShapeComponentRequestsBus EBus interface to communicate with Axis Aligned Box Shape components in your game.
|Returns the configuration of the box shape.||None||Yes|
|Returns the Dimensions of the box shape.||None||Dimensions: Vector3||Yes|
|Sets the Dimensions of the box shape.||Dimensions: Vector3||None||Yes|
Refer to Shape component Ebus interface for a description of functions that are available to all Shape components.
Copyright © 2022 Open 3D Engine Contributors
Documentation Distributed under CC BY 4.0.
The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our Trademark Policy page.