Prechádzať zdrojové kódy

Add note to MeshShape

xiejiangzhi 9 mesiacov pred
rodič
commit
730ae29857
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  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'