Re: ICE test vector inside cone

2013-02-18 Thread Alok
Do you have a ICE Scene setup ? You are wanting to test a point (represented as a pos vector) in a cone whose two inclined lines are defined by a vector, right ? On 18/02/2013 10:45 AM, Miquel Campos wrote: Hello,

Re: ICE test vector inside cone

2013-02-18 Thread Alan Fregtman
Yes. For a bone, we'd be considering a cone drawing it out the direction of the X axis of the bone's transform, knowing only its angle. Is the given global pos inside it? And if so, how far is it from the imaginary center line of said cone? On Mon, Feb 18, 2013 at 10:54 AM, Alok

Re: ICE test vector inside cone

2013-02-18 Thread Alok
I did not get time go through Miquel's scene but here is way :- Refer to this diagram: Part I (Finding whether the point is inside cone) This would be a better solution (found on web but the math seems right): S1

Re: ICE test vector inside cone

2013-02-18 Thread Alok
Sorry , correction in the last line : Find the distance between point p3 and vector **L through ICE. On 18/02/2013 11:28 AM, Alok wrote: I did not get time go through Miquel's scene but here is way :-

Re: ICE test vector inside cone

2013-02-18 Thread Miquel Campos
Woah! thanks for the super answer! :D Miquel Campos www.akaosaru.com 2013/2/18 Alok alok.gan...@modusfx.com Sorry , correction in the last line : Find the distance between point p3 and vector **L through ICE. On 18/02/2013 11:28

Re: ICE test vector inside cone

2013-02-18 Thread Alok Gandhi
Nope parts are two different solutions part 1 for testing point inside cone and part 2 for getting distance between point and axis of the cone. I am going to set a small scene and check myself it this works (in theory it should). Will keep you posted. On Mon, Feb 18, 2013 at 12:23 PM, Miquel

Re: ICE test vector inside cone

2013-02-18 Thread Miquel Campos
Thank you again :) I am continuing testing in my side. I will keep you posted too. :) Miquel Campos www.akaosaru.com 2013/2/18 Alok Gandhi alok.gandhi2...@gmail.com Nope parts are two different solutions part 1 for testing point inside

Re: ICE test vector inside cone

2013-02-18 Thread Raffaele Fragapane
Sounds like this has gone some circuitous way... :) If you have two vectors describing the cone their average is the the cone's centripetal axis. Take the two vectors, linearly interpolate them to 0.5. Lets call that C Take your vector, measure its angle from the the one you got before (C)