# Cone-projected particles

**URL:** <https://forum.kirupa.com/t/cone-projected-particles/308892>\
**Category:** Uncategorized\
**Created:** [May 2, 2010, 9:36pm UTC](https://forum.kirupa.com/t/cone-projected-particles/308892 "2010-05-02T21:36:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NateTheGreatt](https://avatars.discourse-cdn.com/v4/letter/n/46a35a/32.png) [@NateTheGreatt](https://forum.kirupa.com/u/NateTheGreatt)\
**Post date:** [May 2, 2010, 9:36pm UTC](https://forum.kirupa.com/t/cone-projected-particles/308892/1 "2010-05-02T21:36:29Z")

</div>

I’m trying to make a particle effect that projects particles in a cone that go away from a certain point at a certain angle. I can’t get the spread (cone) to be the same at all different angles. The spread seems to get very narrow the closer it is to a quadrant edge (right angle), and spreads out more in between right angles.

```auto

coneAngle = (2*Math.random() - 1) * .5 + particleAngle;

particle_mc.speedX = -Math.cos(coneAngle) * (Math.random()*particleMaxSpeed);
particle_mc.speedY = -Math.sin(coneAngle) * (Math.random()*particleMaxSpeed);

```

Any tips?
