]> git.lizzy.rs Git - irrlicht.git/commit
Fix: Make CBillboardSceneNode bounding-box large enough to fit the billboard inside.
authorcutealien <cutealien@dfc29bdd-3216-0410-991c-e03cc46cb475>
Thu, 29 Sep 2022 14:12:12 +0000 (14:12 +0000)
committersfan5 <sfan5@live.de>
Fri, 24 Mar 2023 16:09:11 +0000 (17:09 +0100)
commit2bff14790434a36ab2a360b83eaebbd70e1e74ef
tree23280fc43571d26d2edb5aed97ffc23be805c2e7
parent3cf75cdce41a9d1e40dc2398cca295bf28d54d2e
Fix: Make CBillboardSceneNode bounding-box large enough to fit the billboard inside.

It still won't work yet for scaled boundingboxes (or parents being scaled).
But at least it's now large enough for typical unscaled boundingboxes.
Before it was always too small - even for the simplest quadratic billboard case seen without rotation.
Now it's always a bit too large, but that's way less of a problem (collisions still work and culling simply happens a bit less often, but not too often which is way worse)

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6431 dfc29bdd-3216-0410-991c-e03cc46cb475
source/Irrlicht/CBillboardSceneNode.cpp