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

Method createViewFront

pymaze/camera.py:33–41  ·  view source on GitHub ↗
(cls, pitch, yaw)

Source from the content-addressed store, hash-verified

31
32 @classmethod
33 def createViewFront(cls, pitch, yaw):
34 pitch_r = glm.radians(pitch)
35 yaw_r = glm.radians(yaw)
36
37 front = glm.vec3(0.0, 0.0, 1.0)
38 front.x = glm.cos(yaw_r) * glm.cos(pitch_r)
39 front.y = glm.sin(pitch_r)
40 front.z = glm.sin(yaw_r) * glm.cos(pitch_r)
41 return glm.normalize(front)
42
43
44 def updateCamera(self, delta, position):

Callers 2

updateCameraMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected