C# Class TerrainDisplay.Collision.SelectedTriangleManager

显示文件 Open project: WCell/WCell-Terrain Class Usage Examples

Public Methods

Method Description
SelectedTriangleManager ( IADTManager adtManager ) : System
UpdateSelectedTriangle ( Ray selectRay, bool add ) : void

Private Methods

Method Description
AddSelectedTriangle ( System.Vector3 v0, System.Vector3 v1, System.Vector3 v2 ) : void

Method Details

SelectedTriangleManager() public method

public SelectedTriangleManager ( IADTManager adtManager ) : System
adtManager IADTManager
return System

UpdateSelectedTriangle() public method

public UpdateSelectedTriangle ( Ray selectRay, bool add ) : void
selectRay Ray A ray in Xna Coords that was cast according to the viewport
add bool Whether to add the selected triangle to the selection
return void