Quellcode durchsuchen

Add note to MeshShape

xiejiangzhi vor 9 Monaten
Ursprung
Commit
730ae29857
1 geänderte Dateien mit 3 neuen und 0 gelöschten Zeilen
  1. 3 0
      api/lovr/physics/MeshShape/init.lua

+ 3 - 0
api/lovr/physics/MeshShape/init.lua

@@ -2,6 +2,9 @@ return {
   summary = 'A mesh Shape.',
   description = 'A type of `Shape` that can be used for triangle meshes.',
   extends = 'Shape',
+  notes = [[
+    MeshShape is static. If the collider contains a MeshShape, it will be forced to become static.
+  ]],
   constructors = {
     'lovr.physics.newMeshShape',
     'World:newMeshCollider'