MCPcopy Create free account
hub / github.com/GarageGames/Torque2D / RayCast

Method RayCast

engine/source/Box2D/Dynamics/b2World.cpp:1019–1029  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1017};
1018
1019void b2World::RayCast(b2RayCastCallback* callback, const b2Vec2& point1, const b2Vec2& point2) const
1020{
1021 b2WorldRayCastWrapper wrapper;
1022 wrapper.broadPhase = &m_contactManager.m_broadPhase;
1023 wrapper.callback = callback;
1024 b2RayCastInput input;
1025 input.maxFraction = 1.0f;
1026 input.p1 = point1;
1027 input.p2 = point2;
1028 m_contactManager.m_broadPhase.RayCast(&wrapper, input);
1029}
1030
1031void b2World::DrawShape(b2Fixture* fixture, const b2Transform& xf, const b2Color& color)
1032{

Callers 4

RayCastCallbackMethod · 0.45
collisionQueryRayMethod · 0.45
RayCastCallbackMethod · 0.45
RayCastCallbackMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected