Combining multiple props into one physics mesh
💬 General•Updated 2 days ago•1 views
Iterate the props, get each physics mesh via ent:getPhysicsObject():getMesh(), offset each vertex by the position delta from the first entity (and apply rotatio…
How to make a single mesh out of multiple props in SF
Iterate the props, get each physics mesh via ent:getPhysicsObject():getMesh(), offset each vertex by the position delta from the first entity (and apply rotations), and table.insert into one combined mesh - then create the custom prop from it. Useful for custom vehicle/prop collision.