update to raylib 4.0-dev and add physac and raygui
This commit is contained in:
parent
8c4d2af2dc
commit
5f28d0101a
13 changed files with 1088 additions and 612 deletions
|
@ -23,8 +23,8 @@ pr.set_camera_mode(camera, pr.CAMERA_ORBITAL)
|
|||
|
||||
pos = pr.get_mouse_position()
|
||||
ray = pr.get_mouse_ray(pos, camera)
|
||||
rayhit = pr.get_collision_ray_ground(ray, 0)
|
||||
print(str(rayhit.position.x))
|
||||
#rayhit = pr.get_ray_collision_ground(ray, 0)
|
||||
#print(str(rayhit.position.x))
|
||||
|
||||
while not pr.window_should_close():
|
||||
pr.update_camera(camera)
|
||||
|
@ -39,7 +39,7 @@ while not pr.window_should_close():
|
|||
|
||||
pos = pr.get_mouse_position()
|
||||
ray = pr.get_mouse_ray(pos, camera)
|
||||
rayhit = pr.get_collision_ray_ground(ray, 0)
|
||||
#rayhit = pr.get_ray_collision_ground(ray, 0)
|
||||
#print(str(rayhit.position.x))
|
||||
|
||||
pr.close_window()
|
||||
|
|
Reference in a new issue