,How to make a Univers Sand box Collision type thing.. [HELP PLZ]
I am not quite sure how to code this but how can I make an onTrigger Enter have to setbool active true && rb.mass + NameOfGameObject is rb.mass > NAMEOFGAMEOBJECT.rb.mass else if rb.mass < NAMEOFGAMEOBJECT.rb.mass set pool active false && rb.mass + NameOfGameObject
So like in Unverse sand box2 where two planets can collide (i have allready done forces eg) but I whant to know how to make the colliding of the two (who ever has more size and or mass can gain the mass of the other object),I am not quite sure how to code this but how can I make an onTrigger Enter have to setbool active true && rb.mass + NameOfGameObject is rb.mass > NAMEOFGAMEOBJECT.rb.mass else if rb.mass < NAMEOFGAMEOBJECT.rb.mass set pool active false && rb.mass + NameOfGameObject
so like how planets collide in UniverSandBox 2 depending on size and mass...
Your answer
Follow this Question
Related Questions
rb.velocity.y sometimes requires stopping on x axis as well. 0 Answers
Can't use SetActive (true) on collision 0 Answers
Trying to figure out how to properly use my CircleCast Detection in my 2D Prototype 0 Answers
[SOLVED] Problem with OnCollisionEnter2D script after upgrading to Unity 5.3(from Unity 4.6) 1 Answer
create object on raycast collision that follows raycast. 0 Answers