1
\$\begingroup\$

I'm trying to make a game like angry birds. in the game materials break and destroy based on force they receive. really what is the right or best way to implement it in unity?

thank you for helping.

\$\endgroup\$
1
  • 2
    \$\begingroup\$ p=mv - Also, while very broad questions often get closed as being too broad, not even putting in the bare minimum effort to get basic capitalization right usually guarantees it. \$\endgroup\$
    – Peter
    Feb 22 '18 at 20:04
1
\$\begingroup\$

In a Unity collision handler, you can check collision.Impulse to get a vector representing the influence the bodies are imparting to each other to brake the movement / rebound away from one another.

The magnitude of this vector is a good measure of how "intense" the impact is.

It's measured in Newton-seconds, representing the instantaneous change in momentum of the body, so it incorporates both velocity (more drastic change in motion = more impulse) and mass (heavier objects = more impulse)

\$\endgroup\$
1
  • \$\begingroup\$ thank you. i think its the right answer. ill accept it after checking it \$\endgroup\$
    – virtouso
    Feb 22 '18 at 20:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .