Skip to content

Commit

Permalink
fix groundSensor not detecting surface issue. [skip CI]
Browse files Browse the repository at this point in the history
  • Loading branch information
pigpigyyy committed Mar 6, 2024
1 parent 60e9802 commit 58b758d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Platformer/Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ void Unit::setGroup(uint8_t group) {
for (pr::ShapeID f : pd::GetShapes(world, _prBody)) {
if (pd::IsSensor(world, f)) {
if (Sensor* sensor = _pWorld->getFixtureData(f)) {
if (sensor->getTag() == Unit::GroundSensorTag || sensor->getTag() == Unit::DetectSensorTag || sensor->getTag() == Unit::AttackSensorTag) {
if (sensor->getTag() == Unit::DetectSensorTag || sensor->getTag() == Unit::AttackSensorTag) {
continue;
}
}
Expand Down

0 comments on commit 58b758d

Please sign in to comment.