소스 검색

Update text_draw_3d.c

pull/1801/head
Ray 4 년 전
부모
커밋
9cc2cee936
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      examples/text/text_draw_3d.c

+ 2
- 2
examples/text/text_draw_3d.c 파일 보기

@ -191,10 +191,10 @@ int main(void)
Ray ray = GetMouseRay(GetMousePosition(), camera);
// Check collision between ray and box
kt">bool collision = CheckCollisionRayBox(ray,
n">RayCollision collision = GetRayCollisionBox(ray,
(BoundingBox){(Vector3){ cubePosition.x - cubeSize.x/2, cubePosition.y - cubeSize.y/2, cubePosition.z - cubeSize.z/2 },
(Vector3){ cubePosition.x + cubeSize.x/2, cubePosition.y + cubeSize.y/2, cubePosition.z + cubeSize.z/2 }});
if (collision)
if (collision.hit)
{
// Generate new random colors
light = GenerateRandomColor(0.5f, 0.78f);

불러오는 중...
취소
저장