L
lonelyember
Guest
I am trying to create a squishy slime character that bounces around the level and sticks to surfaces.
I have managed to get meta balls working to simulate the sticking effect, but for the physics I am having a hard time.
Problems:
- The density of the particles is no where near high enough to get a ball shape.
- I have been trying to draw a primitive triangle fan by getting the outer particles and using this to draw a ball sprite. This is very inaccurate and only some particles are detected as being edge particles
(I am checking their distance from the middle and comparing this to the radius).
Red indicates that it is being detected as a edge particle. I will use these as points to generate the triangle fan to draw a sprite on top of.
However, this square shape will not work for my purposes.
Any help would be appreciated. Thanks.
I have managed to get meta balls working to simulate the sticking effect, but for the physics I am having a hard time.
Problems:
- The density of the particles is no where near high enough to get a ball shape.
- I have been trying to draw a primitive triangle fan by getting the outer particles and using this to draw a ball sprite. This is very inaccurate and only some particles are detected as being edge particles
(I am checking their distance from the middle and comparing this to the radius).
Red indicates that it is being detected as a edge particle. I will use these as points to generate the triangle fan to draw a sprite on top of.
However, this square shape will not work for my purposes.
Any help would be appreciated. Thanks.