blueloveTH 2 anni fa
parent
commit
ccb4d84d8b
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      3rd/box2d/src/box2d_Body.cpp
  2. 1 1
      docs/modules/box2d.md

+ 1 - 1
3rd/box2d/src/box2d_Body.cpp

@@ -40,7 +40,7 @@ void PyBody::_register(VM* vm, PyObject* mod, PyObject* type){
     PK_REGISTER_PROPERTY(PyBody, "friction: float", _b2Fixture, GetFriction, SetFriction)
     PK_REGISTER_PROPERTY(PyBody, "restitution: float", _b2Fixture, GetRestitution, SetRestitution)
     PK_REGISTER_PROPERTY(PyBody, "restitution_threshold: float", _b2Fixture, GetRestitutionThreshold, SetRestitutionThreshold)
-    PK_REGISTER_PROPERTY(PyBody, "is_trigger: bool", _b2Fixture, IsSensor, SetSensor)
+    PK_REGISTER_PROPERTY(PyBody, "is_sensor: bool", _b2Fixture, IsSensor, SetSensor)
 
     vm->bind(type, "set_box_shape(self, hx: float, hy: float)",
         [](VM* vm, ArgsView args){

+ 1 - 1
docs/modules/box2d.md

@@ -112,7 +112,7 @@ class Body:
     friction: float
     restitution: float
     restitution_threshold: float
-    is_trigger: bool
+    is_sensor: bool
 
     def __new__(cls, world: World, node: _NodeLike = None):
         """create a body in the world."""