Space Engineers
Public Member Functions | List of all members
VRageRender.Animations.IMyTerrainHeightProvider Interface Reference

Interface providing terrain height in model space. More...

Inherited by Sandbox.Game.EntityComponents.MyEntityTerrainHeightProviderComponent.

Public Member Functions

bool GetTerrainHeight (Vector3 bonePosition, out float terrainHeight, out Vector3 terrainNormal)
 Get terrain height in model space. More...
 
float GetReferenceTerrainHeight ()
 Get reference terrain height - (flat terrain height) in model space. More...
 

Detailed Description

Interface providing terrain height in model space.

Definition at line 13 of file MyAnimationInverseKinematics.cs.

Member Function Documentation

float VRageRender.Animations.IMyTerrainHeightProvider.GetReferenceTerrainHeight ( )

Get reference terrain height - (flat terrain height) in model space.

bool VRageRender.Animations.IMyTerrainHeightProvider.GetTerrainHeight ( Vector3  bonePosition,
out float  terrainHeight,
out Vector3  terrainNormal 
)

Get terrain height in model space.

Parameters
bonePositionbone position in model space
terrainHeightterrain height in model space
terrainNormalterrain normal in (character) model space
Returns
true if the intersection was found

The documentation for this interface was generated from the following file: