rachelnertia / Quiver

An unfinished cross-platform pseudo-3D game engine written in C++
MIT License
34 stars 8 forks source link

SelectTool::OnMouseClick3D should filter out render-only fixtures #42

Closed rachelnertia closed 6 years ago

rachelnertia commented 6 years ago

The b2Body these are attached to has no user data, so this code makes no sense:

// Follow the fixture's PhysicsComponent to the Entity.
auto physComp =
    (PhysicsComponent*)(callback.mFixture->GetBody()->GetUserData());

And it crashes!