#include <TerrainSystemBus.h>
Inherits AZ::EBusSharedDispatchTraits< TerrainAreaHeightRequests >.
|
typedef AZ::EntityId | BusIdType |
|
|
virtual void | GetHeight (const AZ::Vector3 &inPosition, AZ::Vector3 &outPosition, bool &terrainExists)=0 |
|
virtual void | GetHeights (AZStd::span< AZ::Vector3 > inOutPositionList, AZStd::span< bool > terrainExistsList)=0 |
|
|
static const AZ::EBusAddressPolicy | AddressPolicy = AZ::EBusAddressPolicy::ById |
|
A bus to signal the life times of terrain areas. This bus uses shared dispatches, which means that all requests on the bus can run in parallel, but will NOT run in parallel with bus connections / disconnections.
◆ GetHeight()
virtual void Terrain::TerrainAreaHeightRequests::GetHeight |
( |
const AZ::Vector3 & |
inPosition, |
|
|
AZ::Vector3 & |
outPosition, |
|
|
bool & |
terrainExists |
|
) |
| |
|
pure virtual |
Synchronous single input location. @inPosition is the input position to query. @outPosition will have the same XY as inPosition, but with the Z adjusted to the proper height. @terrainExists is true if the output position is valid terrain.
◆ GetHeights()
virtual void Terrain::TerrainAreaHeightRequests::GetHeights |
( |
AZStd::span< AZ::Vector3 > |
inOutPositionList, |
|
|
AZStd::span< bool > |
terrainExistsList |
|
) |
| |
|
pure virtual |
Synchronous multiple input locations. @inOutPositionList takes a list of Vector3s as input and returns the Vector3s with Z filled out. @terrainExistsList outputs flags for whether or not each output position is valid terrain.
The documentation for this class was generated from the following file:
- Gems/Terrain/Code/Source/TerrainSystem/TerrainSystemBus.h