MCPcopy Create free account
hub / github.com/Blakkis/PyGLMaze / debugDraw

Method debugDraw

pymaze/player.py:130–138  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

128
129 # Draws player bounding box
130 def debugDraw(self):
131 tl = glm.vec3(self.pos.x, 0.0, self.pos.y)
132 tr = glm.vec3(self.pos.x + self.bbox.wh.x, 0.0, self.pos.y + self.bbox.wh.y)
133
134 PWDebug.drawLine(tl, tl + glm.vec3(self.bbox.wh.x, 0.0, 0.0))
135 PWDebug.drawLine(tl, tl + glm.vec3(0.0, 0.0, self.bbox.wh.y))
136
137 PWDebug.drawLine(tr, tr - glm.vec3(self.bbox.wh.x, 0.0, 0.0))
138 PWDebug.drawLine(tr, tr - glm.vec3(0.0, 0.0, self.bbox.wh.y))
139
140
141 # TODO: Add smoother movement

Callers

nothing calls this directly

Calls 1

drawLineMethod · 0.80

Tested by

no test coverage detected