diff --git a/3rd/box2d/src/box2d_Body.cpp b/3rd/box2d/src/box2d_Body.cpp index 89dba3e2..a6b9cb8a 100644 --- a/3rd/box2d/src/box2d_Body.cpp +++ b/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){ diff --git a/docs/modules/box2d.md b/docs/modules/box2d.md index 99c156ef..44009936 100644 --- a/docs/modules/box2d.md +++ b/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."""