MCPcopy Create free account
hub / github.com/OpenNFS/OpenNFS / drawLine

Method drawLine

src/Physics/Physics.h:43–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 }
42
43 virtual void drawLine(const btVector3 &from, const btVector3 &to, const btVector3 &color) {
44 glColor3f(color.x(), color.y(), color.z());
45 glBegin(GL_LINES);
46 glVertex3f(from.x(), from.y(), from.z());
47 glVertex3f(to.x(), to.y(), to.z());
48 glEnd();
49 }
50
51 virtual void drawContactPoint(const btVector3 &, const btVector3 &, btScalar, int, const btVector3 &) {}
52

Callers 3

DrawCarRaycastsMethod · 0.80
DrawVroadMethod · 0.80
DrawCameraAnimationMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected