01-01-2014, 05:08 PM
Hi again Jake,
I'm trying to make a dynamic Mesh Collider for my mesh having the "SplinePathMeshBuilder" script.
Something like :
And... it works but then I can't Edit the shape anymore with the curvySpline Script.
Is there any build in code in order to do that properly ?
I didn't find anything in the doc.
Thanks a lot !
Seb
I'm trying to make a dynamic Mesh Collider for my mesh having the "SplinePathMeshBuilder" script.
Something like :
Code:
GetComponent(MeshCollider).sharedMesh = null;
var mesh : Mesh = GetComponent(MeshFilter).mesh;
GetComponent(MeshCollider).sharedMesh = mesh;
Is there any build in code in order to do that properly ?
I didn't find anything in the doc.
Thanks a lot !
Seb