Jump to content
  • Advertisement
Sign in to follow this  
Juliean

3d cone equation

This topic is 2610 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,

For the new version if my particle system I want to have cones as possible spawn volumes as well as for determining the spawn velocity. What is the equation of such a cone?

1. Given the top is in 0,0,0 and the height from top to the (circle shaped) bottom is aligned to the x-axis.

-What is the equation for a point X,Y,Z exactly on the bottom circle of the cone?
- And the equation for a point inside the cone?

2. Given the top in a random point Xr,Yr,Zr and the height vector oriented in a random direction (vector is onow):

- equation for point on the bottom of the cone?
- equation for point inside the cone?

I wasn't able to figure it out on myself.. Hopefully someone can help me out.. I should be able to figure out how to randomly choose a point on or in the cone, mainly for the particles velocity..

Share this post


Link to post
Share on other sites
Advertisement

Hi,

For the new version if my particle system I want to have cones as possible spawn volumes as well as for determining the spawn velocity. What is the equation of such a cone?

1. Given the top is in 0,0,0 and the height from top to the (circle shaped) bottom is aligned to the x-axis.

-What is the equation for a point X,Y,Z exactly on the bottom circle of the cone?
- And the equation for a point inside the cone?

2. Given the top in a random point Xr,Yr,Zr and the height vector oriented in a random direction (vector is onow):

- equation for point on the bottom of the cone?
- equation for point inside the cone?

I wasn't able to figure it out on myself.. Hopefully someone can help me out.. I should be able to figure out how to randomly choose a point on or in the cone, mainly for the particles velocity..


Without a height for the cone you can't get a point on the bottom face.

You can take the direction from apex to center of base, an angle around the circumference of base[0:360], an angle denoting cone radius[0:n], to get a vector that is inside cone.

Share this post


Link to post
Share on other sites
Sry, it was late, so I forgot to mention: Not only is the top point and the direction of the height given, but also the length of the height and the angle of the cone (determining the radius of the bottom circle). Given all that things, what is the equation I'm looking for? Thanks!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!