Hi there ,
I add force to a rigidbody by code and it moves very well .But when it moves Just a Few Moments to stop ,it’s destroyed suddenly !!! Have i forgot something in Physics settings menu or something else ?!
Thanks
Hi there ,
I add force to a rigidbody by code and it moves very well .But when it moves Just a Few Moments to stop ,it’s destroyed suddenly !!! Have i forgot something in Physics settings menu or something else ?!
Thanks
Yes it’s destroyed and the object doesn’t exist in the Hierarchy panel any more! it moves on a plane and suddenly is destroyed ! Isn’t it for collision computation reasons ?!
Physics don't destroy any object. Some other script must be destroying it, or it's just being moved out of your sight. Look at the Hierarchy panel to see if the object disappears when it seems to be destroyed.
– aldonalettoPost the Code please, ow and reply through a comment with a comment
– anon49000424