Space Engineers
Public Member Functions | List of all members
Sandbox.Engine.Voxels.MyCsgBox Class Reference

Creates simple axis aligned box with no noise applied to it. Meant to be simple example of how to implement CSG shape. More...

Inheritance diagram for Sandbox.Engine.Voxels.MyCsgBox:
Sandbox.Engine.Voxels.MyCsgShapeBase

Public Member Functions

 MyCsgBox (Vector3 translation, float halfExtents)
 

Additional Inherited Members

- Protected Member Functions inherited from Sandbox.Engine.Voxels.MyCsgShapeBase
 MyCsgShapeBase ()
 
- Protected Attributes inherited from Sandbox.Engine.Voxels.MyCsgShapeBase
bool m_enableModulation
 
float m_detailSize
 

Detailed Description

Creates simple axis aligned box with no noise applied to it. Meant to be simple example of how to implement CSG shape.

NOTE: Using this box might not always produce sharp edges due to rasterization of distance function. They will be sharp when box aligns with raster grid (which is, simply put, for positions and sizes that are power of two).

Definition at line 19 of file MyCsgBox.cs.

Constructor & Destructor Documentation

Sandbox.Engine.Voxels.MyCsgBox.MyCsgBox ( Vector3  translation,
float  halfExtents 
)
inline

Definition at line 24 of file MyCsgBox.cs.


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