[DiscordArchive] why are we even talking about bounding box?
[DiscordArchive] why are we even talking about bounding box?
Archived author: Skarn • Posted: 2018-06-25T15:10:53.162000+00:00
Original source
why are we even talking about bounding box?
Archived author: Azarchius • Posted: 2018-06-25T15:12:33.090000+00:00
Original source
the purple thing is the collision box, which is what's strange. I haven't found so far a single m2 that has collision but whose collision box appears to matter in any way.
Archived author: Skarn • Posted: 2018-06-25T15:12:40.813000+00:00
Original source
That's what I do
Archived author: Skarn • Posted: 2018-06-25T15:12:44.569000+00:00
Original source
```py
# collect geometry data
vertices = [tuple(new_obj.matrix_world * vertex.co) for vertex in mesh.vertices]
faces = [tuple([vertex for vertex in poly.vertices]) for poly in mesh.polygons]
normals = [tuple(poly.normal) for poly in mesh.polygons]
self.m2.add_collision_mesh(vertices, faces, normals)
```
Archived author: Skarn • Posted: 2018-06-25T15:12:59.907000+00:00
Original source
Note that normals are per-face, not per vertex
Archived author: Azarchius • Posted: 2018-06-25T15:13:16.564000+00:00
Original source
yeah I know
Archived author: Skarn • Posted: 2018-06-25T15:13:29.130000+00:00
Original source
what's the issue then?
Archived author: Azarchius • Posted: 2018-06-25T15:13:57.954000+00:00
Original source
we were just talking about collision box
Archived author: Skarn • Posted: 2018-06-25T15:14:02.976000+00:00
Original source
the only way you can do auto collision that I can think of is 1:1 shape as geometry, or simplification through convex hills.
Archived author: Skarn • Posted: 2018-06-25T15:14:30.690000+00:00
Original source
the box probably comes into play with pathing