소스 검색

REVIEWED: `GetModelBoundingBox()` #3485

pull/3488/head
Ray 2 년 전
부모
커밋
7677e4b928
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. +6
    -0
      src/rmodels.c

+ 6
- 0
src/rmodels.c 파일 보기

@ -1170,6 +1170,12 @@ BoundingBox GetModelBoundingBox(Model model)
bounds.max = temp;
}
}
// Apply model.transform to bounding box
// WARNING: Current BoundingBox structure design does not support rotation transformations,
// in those cases is up to the user to calculate the proper box bounds (8 vertices transformed)
bounds.min = Vector3Transform(bounds.min, model.transform);
bounds.max = Vector3Transform(bounds.max, model.transform);
return bounds;
}

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