Show / Hide Table of Contents

Interface IMyEnvironmentOwner

Namespace: Sandbox.Game.WorldEnvironment
Assembly: Sandbox.Game.dll
Syntax
public interface IMyEnvironmentOwner

Properties

Entity

Declaration
MyEntity Entity { get; }
Property Value
Type Description
MyEntity

EnvironmentDefinition

Declaration
MyWorldEnvironmentDefinition EnvironmentDefinition { get; }
Property Value
Type Description
Sandbox.Game.WorldEnvironment.Definitions.MyWorldEnvironmentDefinition

Methods

GetBoundingShape(ref Vector3D, ref Vector3, ref Vector3)

Declaration
Vector3D[] GetBoundingShape(ref Vector3D worldPos, ref Vector3 basisX, ref Vector3 basisY)
Parameters
Type Name Description
Vector3D worldPos
Vector3 basisX
Vector3 basisY
Returns
Type Description
Vector3D[]

GetDefinition(UInt16, out MyRuntimeEnvironmentItemInfo)

Declaration
void GetDefinition(ushort index, out MyRuntimeEnvironmentItemInfo def)
Parameters
Type Name Description
System.UInt16 index
Sandbox.Game.WorldEnvironment.Definitions.MyRuntimeEnvironmentItemInfo def

GetModelForId(Int16)

Declaration
MyPhysicalModelDefinition GetModelForId(short id)
Parameters
Type Name Description
System.Int16 id
Returns
Type Description
MyPhysicalModelDefinition

GetModelId(MyPhysicalModelDefinition)

Declaration
short GetModelId(MyPhysicalModelDefinition def)
Parameters
Type Name Description
MyPhysicalModelDefinition def
Returns
Type Description
System.Int16

GetSectorById(Int64)

Declaration
MyEnvironmentSector GetSectorById(long packedSectorId)
Parameters
Type Name Description
System.Int64 packedSectorId
Returns
Type Description
MyEnvironmentSector

GetSectorForPosition(Vector3D)

Declaration
MyEnvironmentSector GetSectorForPosition(Vector3D positionWorld)
Parameters
Type Name Description
Vector3D positionWorld
Returns
Type Description
MyEnvironmentSector

GetSeed()

Declaration
int GetSeed()
Returns
Type Description
System.Int32

GetSurfaceNormalForPoint(ref Vector3D, out Vector3D)

Declaration
void GetSurfaceNormalForPoint(ref Vector3D point, out Vector3D normal)
Parameters
Type Name Description
Vector3D point
Vector3D normal

ProjectPointToSurface(ref Vector3D)

Declaration
void ProjectPointToSurface(ref Vector3D center)
Parameters
Type Name Description
Vector3D center

QuerySurfaceParameters(Vector3D, ref BoundingBoxD, List<Vector3>, MyList<MySurfaceParams>)

Declaration
void QuerySurfaceParameters(Vector3D localOrigin, ref BoundingBoxD queryBounds, List<Vector3> queries, MyList<MySurfaceParams> results)
Parameters
Type Name Description
Vector3D localOrigin
BoundingBoxD queryBounds
System.Collections.Generic.List<Vector3> queries
VRage.Library.Collections.MyList<MySurfaceParams> results

ScheduleWork(MyEnvironmentSector, Boolean)

Declaration
void ScheduleWork(MyEnvironmentSector sector, bool parallel)
Parameters
Type Name Description
MyEnvironmentSector sector
System.Boolean parallel

SetSectorPinned(MyEnvironmentSector, Boolean)

Declaration
void SetSectorPinned(MyEnvironmentSector sector, bool pinned)
Parameters
Type Name Description
MyEnvironmentSector sector
System.Boolean pinned
☀
☾
In This Article
  • Properties
    • Entity
    • EnvironmentDefinition
  • Methods
    • GetBoundingShape(ref Vector3D, ref Vector3, ref Vector3)
    • GetDefinition(UInt16, out MyRuntimeEnvironmentItemInfo)
    • GetModelForId(Int16)
    • GetModelId(MyPhysicalModelDefinition)
    • GetSectorById(Int64)
    • GetSectorForPosition(Vector3D)
    • GetSeed()
    • GetSurfaceNormalForPoint(ref Vector3D, out Vector3D)
    • ProjectPointToSurface(ref Vector3D)
    • QuerySurfaceParameters(Vector3D, ref BoundingBoxD, List<Vector3>, MyList<MySurfaceParams>)
    • ScheduleWork(MyEnvironmentSector, Boolean)
    • SetSectorPinned(MyEnvironmentSector, Boolean)
Back to top
Generated by DocFX
☀
☾