MCPcopy Create free account
hub / github.com/electronstudio/raylib-python-cffi / get_camera

Method get_camera

examples/extra/extra_camera.py:24–34  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22 self.last_time = rl.GetFrameTime()
23
24 def get_camera(self):
25 return ffi.new(
26 "struct Camera3D *",
27 [
28 self.get_ray_front(),
29 self.get_ray_position(),
30 self.get_ray_up(),
31 self.fov,
32 rl.CAMERA_PERSPECTIVE
33 ]
34 )
35
36 def get_ray_front(self):
37 return list(self.position + self.front)

Callers 1

camera_testFunction · 0.95

Calls 3

get_ray_frontMethod · 0.95
get_ray_positionMethod · 0.95
get_ray_upMethod · 0.95

Tested by

no test coverage detected