Skip to main content
GameDev.net gamedev.net
🔒 Locked

Cone Direction

Started by xaviergxf Jan 25, 2007 at 9:54 PM 1 replies 500+ views
Original Post
xaviergxf
xaviergxf
Hi everyone, I have the following problem: In a determinate position, and in a determinate vector that represents the point of the cone(v) and with a cone radius; i want to create a directinal vector that is inside the cone radius; Can someone help me? Thanks.
Zipster
Zipster
I'm not sure I understand. Cones don't have a radius, they have an angle from a central axis and a point where they intersect this axis. Are you saying you have this intersection point (typically considered the cone's "position") as well as a point on the surface of the cone that's some distance from the central axis?
haphazardlynamed
haphazardlynamed
I think I hear what he wants

Practical Example:
Im making a shotgun for my game and need to randomly disperse pellets so they fire within a fixed cone of accuracy.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.