I was doing some testing with the anchorPos and I was always trying to hide the torch inside the wall.
This causes clipping as you've all seen.
Clearly it was time to think outside the box.
What if I hide the torch outside the entire map?
So I tried:
Code: Select all
defineObject{
name = "lantern_torch_holder",
class = "TorchHolder",
model = "assets/models/env/wall_lantern.fbx",
anchorPos = vec(0.05, 1.53, 400),
anchorRotation = vec(0, -20, -90),
placement = "wall",
editorIcon = 84,
}