2025-11-27 00:18 CET

spring: develop 7b900a5c Diff ] Back to Repository ]
Author Committer Branch Timestamp Parent
rtri rtri develop 2016-01-14 19:55:20 develop c5381454
Changeset extend Spring.TraceScreenRay to intersect a user-given plane

plane parameters are (0, 1, 0, D=0) where D is the offset
D can be specified in the third argument or in the seventh:

  TraceScreenRay(mx, my[, D[, bool[,bool[,bool[,bool]]]]]) or
  TraceScreenRay(mx, my[, bool[,bool[,bool[,bool[, D]]]]])

intersection coordinates are returned in t[4],t[5],t[6] when
the ray goes offmap and includeSky is true), or when no unit
or feature is hit (or onlyCoords is true)
mod - rts/Game/TraceRay.cpp Diff ] File ]
mod - rts/Game/TraceRay.h Diff ] File ]
mod - rts/Game/UI/GuiHandler.cpp Diff ] File ]
mod - rts/Game/UI/MouseHandler.cpp Diff ] File ]
mod - rts/Game/UI/MouseHandler.h Diff ] File ]
mod - rts/Lua/LuaUnsyncedRead.cpp Diff ] File ]
mod - rts/Map/Ground.cpp Diff ] File ]
mod - rts/Map/Ground.h Diff ] File ]
mod - rts/Rendering/Env/ISky.cpp Diff ] File ]