Browse Source

in world coordinates;

bjorn 5 years ago
parent
commit
938c492484
2 changed files with 3 additions and 3 deletions
  1. 1 1
      api/init.lua
  2. 2 2
      api/lovr/physics/World/raycast.lua

+ 1 - 1
api/init.lua

@@ -22450,7 +22450,7 @@ return {
               description = "Casts a ray through the World, calling a function every time the ray intersects with a Shape.",
               key = "World:raycast",
               module = "lovr.physics",
-              notes = "The callback is passed the shape that was hit, the hit position, and the normal vector of the hit.",
+              notes = "The callback is passed the shape that was hit, the hit position (in world coordinates), and the normal vector of the hit.",
               variants = {
                 {
                   arguments = {

+ 2 - 2
api/lovr/physics/World/raycast.lua

@@ -74,8 +74,8 @@ return {
   },
   returns = {},
   notes = [[
-    The callback is passed the shape that was hit, the hit position, and the normal vector of the
-    hit.
+    The callback is passed the shape that was hit, the hit position (in world coordinates), and the
+    normal vector of the hit.
   ]],
   example = [[
     function lovr.load()