Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
trs:meshes_models [2019/08/09 07:59]
stohrendorf
trs:meshes_models [2020/05/24 21:54] (current)
zdimension [Static Meshes]
Line 119: Line 119:
 ''​%%VisibilityBox%%''​ and ''​%%CollisionBox%%''​ boundaries is always stay axis aligned even after applying tr_room_staticmesh::​Rotation (always have 90 degrees step). Additionally,​ the test whether to rotate the box or not relies on the mesh’s rotation being an exact multiple of 0x4000 (aka 90 degrees). If this is not the case, the box is not rotated, which results in wrong collision checks. ''​%%VisibilityBox%%''​ and ''​%%CollisionBox%%''​ boundaries is always stay axis aligned even after applying tr_room_staticmesh::​Rotation (always have 90 degrees step). Additionally,​ the test whether to rotate the box or not relies on the mesh’s rotation being an exact multiple of 0x4000 (aka 90 degrees). If this is not the case, the box is not rotated, which results in wrong collision checks.
  
-{{:​icons:​tr1.png?​nolink|TR1 only}}{{:​icons:​tr2.png?​nolink|TR2 only}} ''​%%Flags%%'' ​value is usually 2, and is 3 for static meshes //without collision//,​ like plants and lying skeletons. Since TR3, value is ignored, and no-collision ​mode is obtained using degenerate collision box (with all-zero or all-one coordinates).+{{:​icons:​tr1.png?​nolink|TR1 only}}{{:​icons:​tr2.png?​nolink|TR2 ​only}}{{:​icons:​tr3.png?​nolink|TR3 ​only}} ''​%%Flags%%''​
 +  * **Bit 0** (''​0x0001''​): ​no collision 
 +  * **Bit 1** (''​0x0002''​): is visible 
  
 ===== Models ===== ===== Models =====
trs/meshes_models.1565330367.txt.gz · Last modified: 2019/08/09 07:59 by stohrendorf
Back to top
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0