Browse Source

Clarify setSensor;

bjorn 2 years ago
parent
commit
73f1c6bbf2
2 changed files with 1582 additions and 1580 deletions
  1. 1579 1578
      api/init.lua
  2. 3 2
      api/lovr/physics/Shape/setSensor.lua

File diff suppressed because it is too large
+ 1579 - 1578
api/init.lua


+ 3 - 2
api/lovr/physics/Shape/setSensor.lua

@@ -1,8 +1,9 @@
 return {
   summary = 'Set the sensor status for the Shape.',
   description = [[
-    Sets whether this Shape is a sensor.  Sensors do not trigger any collision response, but they
-    still report collisions in `World:collide`.
+    Sets whether this Shape is a sensor.  When a Shape is a sensor, it will not generate any
+    collision response when it collides with things, but collisions can still be detected with
+    `World:collide` and `World:getContacts`.
   ]],
   arguments = {
     sensor = {

Some files were not shown because too many files changed in this diff