Forráskód Böngészése

Add note to MeshShape

xiejiangzhi 8 hónapja
szülő
commit
730ae29857
1 módosított fájl, 3 hozzáadás és 0 törlés
  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'