Docs

Guides

Collision

The 22 convex collision hulls on the Chinese Teahouse, how they were tested, and what the lanterns and props collide with.

The building's hulls#

SM_CT_Teahouse carries 22 convex hulls placed by the build script. They are simple collision, with Unreal's default "simple and complex" setting. The hulls cover:

  • the plinth and veranda deck (top at 54 cm)
  • each of the three steps as its own hull (tops at 18, 36 and 54 cm)
  • the building body, including door and window frames
  • the four front columns and their four bases
  • the two counters
  • the upper gallery deck and its rail
  • the canopy roof
  • the main roof, as four quadrant hulls

How it was tested#

Verified in the shipped project with line and box traces against a placed Blueprint:

  • 18 of 18 floor samples on the steps and veranda land within 2 cm of the modelled surface.
  • 26 of 26 horizontal traces from outside are blocked by the walls.
  • 9 of 9 downward traces from 15 m are stopped by the roofs. On a 99-point grid over the whole footprint, every point where a downward trace meets the building's render mesh also meets its collision.
  • A 2.2 m tall box sweeps along the veranda under the canopy without hitting anything.

Each step rises 18 cm, well under the 45 cm default maximum step height of Unreal's Character Movement component.

Lanterns and props#

The lanterns have no collision inside the Blueprint, so they never block a character. They hang over the front edge of the veranda with the bottom of the frame 2.48 m above the street (1.94 m above the veranda floor).

The stand-alone lantern and jar meshes carry one simple hull each.