C# Class Nomad.Utils.RayUtils

ファイルを表示 Open project: Azerothian/fc3editor

Public Methods

Method Description
ApplyScreenDeltaToWorldPos ( Vec2 screenDelta, Vec3 &worldPos ) : void
GetScreenPointFromWorldPos ( Vec3 worldPos, Vec2 &screenPoint ) : bool
GetScreenPointFromWorldPos ( Vec3 worldPos, Vec2 &screenPoint, bool clipped ) : bool
GetWorldRayFromScreenPoint ( Vec2 screenPoint, Vec3 &raySrc, Vec3 &rayDir ) : void
RayCastPhysics ( Vec3 raySrc, Vec3 rayDir, EditorObject ignore, Vec3 &hitPos, float &hitDist ) : bool
RayCastPhysics ( Vec3 raySrc, Vec3 rayDir, EditorObject ignore, Vec3 &hitPos, float &hitDist, Vec3 &hitNormal ) : bool
RayCastPhysics ( Vec3 raySrc, Vec3 rayDir, EditorObjectSelection ignore, Vec3 &hitPos, float &hitDist ) : bool
RayCastPhysics ( Vec3 raySrc, Vec3 rayDir, EditorObjectSelection ignore, Vec3 &hitPos, float &hitDist, Vec3 &hitNormal ) : bool
RayCastPhysicsFromMouse ( Vec3 &hitPos, ViewportControl viewport ) : bool
RayCastPhysicsFromScreenPoint ( Vec2 screenPoint, Vec3 &hitPos ) : bool
RayCastTerrain ( Vec3 raySrc, Vec3 rayDir, Vec3 &hitPos, float &hitDist ) : bool
RayCastTerrainFromMouse ( Vec3 &hitPos, ViewportControl viewport ) : bool
RayCastTerrainFromScreenPoint ( Vec2 screenPoint, Vec3 &hitPos ) : bool

Method Details

ApplyScreenDeltaToWorldPos() public static method

public static ApplyScreenDeltaToWorldPos ( Vec2 screenDelta, Vec3 &worldPos ) : void
screenDelta Nomad.Maths.Vec2
worldPos Nomad.Maths.Vec3
return void

GetScreenPointFromWorldPos() public static method

public static GetScreenPointFromWorldPos ( Vec3 worldPos, Vec2 &screenPoint ) : bool
worldPos Nomad.Maths.Vec3
screenPoint Nomad.Maths.Vec2
return bool

GetScreenPointFromWorldPos() public static method

public static GetScreenPointFromWorldPos ( Vec3 worldPos, Vec2 &screenPoint, bool clipped ) : bool
worldPos Nomad.Maths.Vec3
screenPoint Nomad.Maths.Vec2
clipped bool
return bool

GetWorldRayFromScreenPoint() public static method

public static GetWorldRayFromScreenPoint ( Vec2 screenPoint, Vec3 &raySrc, Vec3 &rayDir ) : void
screenPoint Nomad.Maths.Vec2
raySrc Nomad.Maths.Vec3
rayDir Nomad.Maths.Vec3
return void

RayCastPhysics() public static method

public static RayCastPhysics ( Vec3 raySrc, Vec3 rayDir, EditorObject ignore, Vec3 &hitPos, float &hitDist ) : bool
raySrc Nomad.Maths.Vec3
rayDir Nomad.Maths.Vec3
ignore Nomad.Editor.EditorObject
hitPos Nomad.Maths.Vec3
hitDist float
return bool

RayCastPhysics() public static method

public static RayCastPhysics ( Vec3 raySrc, Vec3 rayDir, EditorObject ignore, Vec3 &hitPos, float &hitDist, Vec3 &hitNormal ) : bool
raySrc Nomad.Maths.Vec3
rayDir Nomad.Maths.Vec3
ignore Nomad.Editor.EditorObject
hitPos Nomad.Maths.Vec3
hitDist float
hitNormal Nomad.Maths.Vec3
return bool

RayCastPhysics() public static method

public static RayCastPhysics ( Vec3 raySrc, Vec3 rayDir, EditorObjectSelection ignore, Vec3 &hitPos, float &hitDist ) : bool
raySrc Nomad.Maths.Vec3
rayDir Nomad.Maths.Vec3
ignore Nomad.Editor.EditorObjectSelection
hitPos Nomad.Maths.Vec3
hitDist float
return bool

RayCastPhysics() public static method

public static RayCastPhysics ( Vec3 raySrc, Vec3 rayDir, EditorObjectSelection ignore, Vec3 &hitPos, float &hitDist, Vec3 &hitNormal ) : bool
raySrc Nomad.Maths.Vec3
rayDir Nomad.Maths.Vec3
ignore Nomad.Editor.EditorObjectSelection
hitPos Nomad.Maths.Vec3
hitDist float
hitNormal Nomad.Maths.Vec3
return bool

RayCastPhysicsFromMouse() public static method

public static RayCastPhysicsFromMouse ( Vec3 &hitPos, ViewportControl viewport ) : bool
hitPos Nomad.Maths.Vec3
viewport ViewportControl
return bool

RayCastPhysicsFromScreenPoint() public static method

public static RayCastPhysicsFromScreenPoint ( Vec2 screenPoint, Vec3 &hitPos ) : bool
screenPoint Nomad.Maths.Vec2
hitPos Nomad.Maths.Vec3
return bool

RayCastTerrain() public static method

public static RayCastTerrain ( Vec3 raySrc, Vec3 rayDir, Vec3 &hitPos, float &hitDist ) : bool
raySrc Nomad.Maths.Vec3
rayDir Nomad.Maths.Vec3
hitPos Nomad.Maths.Vec3
hitDist float
return bool

RayCastTerrainFromMouse() public static method

public static RayCastTerrainFromMouse ( Vec3 &hitPos, ViewportControl viewport ) : bool
hitPos Nomad.Maths.Vec3
viewport ViewportControl
return bool

RayCastTerrainFromScreenPoint() public static method

public static RayCastTerrainFromScreenPoint ( Vec2 screenPoint, Vec3 &hitPos ) : bool
screenPoint Nomad.Maths.Vec2
hitPos Nomad.Maths.Vec3
return bool