C# Class Nomad.Utils.RayUtils

Afficher le fichier Open project: Azerothian/fc3editor

Méthodes publiques

Méthode 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 méthode

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

GetScreenPointFromWorldPos() public static méthode

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

GetScreenPointFromWorldPos() public static méthode

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

GetWorldRayFromScreenPoint() public static méthode

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

RayCastPhysics() public static méthode

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
Résultat bool

RayCastPhysics() public static méthode

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
Résultat bool

RayCastPhysics() public static méthode

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
Résultat bool

RayCastPhysics() public static méthode

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
Résultat bool

RayCastPhysicsFromMouse() public static méthode

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

RayCastPhysicsFromScreenPoint() public static méthode

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

RayCastTerrain() public static méthode

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
Résultat bool

RayCastTerrainFromMouse() public static méthode

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

RayCastTerrainFromScreenPoint() public static méthode

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