# Fluid Objects Collision Problem

**URL:** https://forum.kirupa.com/t/fluid-objects-collision-problem/189608
**Category:** flash
**Created:** [June 4, 2006, 4:14pm UTC](https://forum.kirupa.com/t/fluid-objects-collision-problem/189608 "2006-06-04T16:14:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mathew\_er](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@mathew\_er](https://forum.kirupa.com/u/mathew_er)
#### Post date: [June 4, 2006, 4:14pm UTC](https://forum.kirupa.com/t/fluid-objects-collision-problem/189608/1 "2006-06-04T16:14:21Z")

</div>

Hi,  
I’m having some trouble getting this to work. I made some fluid-like objects, got them on the stage and everything went OK until I tried to implement collisions.

Its really just few points moving to a target point and also forming into some initial shape. These points are drawn into a MC using Flash drawing API.

I use hitTest to determine if one of the points intersects with one of other shapes. This works, but the problem is how to move one shape aside and how to move points of that shape **so the shapes don’t overlap**? Ive spent many hours on this and no solution works. Right now, the intersecting point moves towards the center of its shape, but the movement is all jumpy and not fluent.

I have attached the source. Its uncommented, the hittest happens around line 200 in Shape.as

Thanks for you help, it’s highly appreciated!
