# Collision Physics

**URL:** <https://forum.kirupa.com/t/collision-physics/116701>\
**Category:** Uncategorized\
**Created:** [July 20, 2004, 6:56pm UTC](https://forum.kirupa.com/t/collision-physics/116701 "2004-07-20T18:56:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerez\_z](https://avatars.discourse-cdn.com/v4/letter/j/bc79bd/32.png) [@jerez\_z](https://forum.kirupa.com/u/jerez_z)\
**Post date:** [July 20, 2004, 6:56pm UTC](https://forum.kirupa.com/t/collision-physics/116701/1 "2004-07-20T18:56:51Z")

</div>

does any one know where I can find a tutorial on the physics behind two cars colliding? I’m building it for the fun of it but its not working too well… see attachment for swf/fla

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 20, 2004, 7:33pm UTC](https://forum.kirupa.com/t/collision-physics/116701/2 "2004-07-20T19:33:42Z")

</div>

theres a tutorial on this somewhere…cant seem to find it though

---

<div class="post-metadata">

**Author:** ![ViNc3](https://avatars.discourse-cdn.com/v4/letter/v/b487fb/32.png) [@ViNc3](https://forum.kirupa.com/u/ViNc3)\
**Post date:** [July 29, 2004, 8:48am UTC](https://forum.kirupa.com/t/collision-physics/116701/3 "2004-07-29T08:48:18Z")

</div>

> [@color\_loser\_pup](#):
>
> theres a tutorial on this somewhere…cant seem to find it though

[http://www.kirupa.com/developer/actionscript/hittest.htm](http://www.kirupa.com/developer/actionscript/hittest.htm)

---

<div class="post-metadata">

**Author:** ![jerez\_z](https://avatars.discourse-cdn.com/v4/letter/j/bc79bd/32.png) [@jerez\_z](https://forum.kirupa.com/u/jerez_z)\
**Post date:** [July 29, 2004, 1:45pm UTC](https://forum.kirupa.com/t/collision-physics/116701/4 "2004-07-29T13:45:42Z")

</div>

I got testing for the collision handled (mine --\> [http://www.kirupa.com/developer/actionscript/advanced\_collision.htm](http://www.kirupa.com/developer/actionscript/advanced_collision.htm)) I just need something to give me an idea of what to do once I know they have collided.

---

<div class="post-metadata">

**Author:** ![bobdoe](https://avatars.discourse-cdn.com/v4/letter/b/51bf81/32.png) [@bobdoe](https://forum.kirupa.com/u/bobdoe)\
**Post date:** [July 29, 2004, 3:00pm UTC](https://forum.kirupa.com/t/collision-physics/116701/5 "2004-07-29T15:00:55Z")

</div>

well roll two balls into each other and see what happens! Code-wise, I think you can just reverse the direction of MCs and divide the speed value by a significant increasing value to represent the cars slowing down.

---

<div class="post-metadata">

**Author:** ![jerez\_z](https://avatars.discourse-cdn.com/v4/letter/j/bc79bd/32.png) [@jerez\_z](https://forum.kirupa.com/u/jerez_z)\
**Post date:** [July 29, 2004, 3:43pm UTC](https://forum.kirupa.com/t/collision-physics/116701/6 "2004-07-29T15:43:01Z")

</div>

I’ve already got that covered… and when the cars collide one spins off based on where the collision was realtive to its center… but its not 100% effective… I highyl doubt that the physics are correct. (Look at the zip file ^)

---

<div class="post-metadata">

**Author:** ![bobdoe](https://avatars.discourse-cdn.com/v4/letter/b/51bf81/32.png) [@bobdoe](https://forum.kirupa.com/u/bobdoe)\
**Post date:** [July 29, 2004, 4:20pm UTC](https://forum.kirupa.com/t/collision-physics/116701/7 "2004-07-29T16:20:47Z")

</div>

I just looked at the zip and I wanted to ask how come the controlled car doesnt bounce backwards when it hits the object. According the Newton’s third law, every force creates a reaction force, which means when you hit something it hits back at equal force. Sorry for that little physics lesson, but it got annoying when my car got stuck inside the blob area and I couldnt get it out.

---

<div class="post-metadata">

**Author:** ![jerez\_z](https://avatars.discourse-cdn.com/v4/letter/j/bc79bd/32.png) [@jerez\_z](https://forum.kirupa.com/u/jerez_z)\
**Post date:** [July 29, 2004, 5:05pm UTC](https://forum.kirupa.com/t/collision-physics/116701/8 "2004-07-29T17:05:06Z")

</div>

that is actually still in progress… I wanted to make the blob bounce away correctly first
