Hey all,
I have put a post about this in the UNITY forums... but then remember that this get more through put - I apologise for the duplicate post.
Basically, I have a catapult-smash-stuff game that I was trying to hack together for a "Game-A-Week" challenge. However I'm having a random effect.
Please see this video (especially the end) to get a visual feel for what I'm on about.
Basically this is the idea:
1) Boulder hits an object.
2) If boulder had enough velocity 'Split' the mesh once (random way).
2b) If other things are hitting each other with enough force (initial force is only provided by physics engine when boulder hits something - no addforce() code) then split (again in a random way).
This should be fine, however some of the 'slices' seem to be exploding off in random directions - and I have no idea how or why.
I'm telling the objects to 'split' from the OnCollisionEnter function - is this correct?
All replies greatly appreciated - and yes, that includes insults...
NB: noob, trying to learn about the physics engine, so please expect noobish mistakes.
P.S. The items being sliced are simple Cubes (with box colliders).
Howeve, after slicing they are no longer cubes and have mesh colliders to reflect this. Also some of the triangles aren't showing on the sliced meshes (never had this problem before), could this have something to do with it? I thought this would just be a 'visual' issue...
P.S. The items being sliced are simple Cubes (with box colliders).
Howeve, after slicing they are no longer cubes and have mesh colliders to reflect this. Also some of the triangles aren't showing on the sliced meshes (never had this problem before), could this have something to do with it? I thought this would just be a 'visual' issue...