#Mesh colliding

1 messages · Page 1 of 1 (latest)

fringe gate
#

Hi! I have made a script which generate at mesh based on procedural generation, it works but I would like the player to be able to walk on the mesh. The player can walk on a cube but neither the player or for example a cube can collide with the mesh. Thanks in advance!

acoustic lintel
#

Is it convex?

fringe gate
#

Yes and yes

acoustic lintel
#

Then it should work 🤔

#

You can see the shape from scene view right?

fringe gate
#

The mesh is generated when the game starts but I can see the shape from scene view when the game has started

acoustic lintel
#

The collider shape

fringe gate
#

What do you mean?

#

The mesh has a rendererer, collider, script and filter

acoustic lintel
#

for Mesh collider it will have green outline

fringe gate
#

Im testing

#

No, its only a orange border

acoustic lintel
fringe gate
#

In the script?

acoustic lintel
#

yeah

fringe gate
#

I don't think so

acoustic lintel
#

sharedMesh

fringe gate
#

I set mesh.vertices, mesh.triangles and mesh.colors

acoustic lintel
#

to your mesh

#

After generating your mesh, ofc

fringe gate
#

Thanks, I will try to do that