#Falling trees, creating rigid body on code
1 messages · Page 1 of 1 (latest)
the problem is, that after the tree takes the fist hit and creates rigid body for itself, it fails to register anymore hits
well the rigidbody is being hit, but the trees script and original collider are not working anymore
this causes that the tree has to fall from the first hit, but if it stays standing it refuses to fall anymore, because the hits dont reach the script anymore
if i make a rigidbody in code, does it automatically make a new collider that is blocking the old one?
because it is a tree, the prefab has the pivoting point as parent, and as child object there are the graphics, collider and the script that takes in the damage and causes torque
it would look stupid if the pivoting point was in the middle of the tree, when torque was applied
and on script i had to add the rigid body to the parent, because otherwise it started glitching quite badly