Finding the right angle
I've im given a plane [yellow object in image] and a sphere [green object], how can i find the position of the right angle between the two objects? as demonstrated in the image below. I know 3 things which i assume will help find the solution
1. The position of the plane
2. The Normal of the plane
3. The position of the sphere
/* Test Scene Setup */ delete objects pln = plane width:5 length:5 pos:[0,10,10] wirecolor:yellow rotate pln (angleaxis 30 [1,0,0]) s1 = sphere pos:[0,30,0] wirecolor:red radius:2 center = pln.pos normal = pln.transform.row3
Attachment | Size |
---|---|
findangle.png | 3.42 KB |
Comments
Completed!
nothing a little trig couldn't do
John Martini
Digital Artist
http://www.JokerMartini.com (new site)
that is an interesting
that is an interesting approach but id like to avoid doing the intersect ray stuff
John Martini
Digital Artist
http://www.JokerMartini.com (new site)
.
Check the cgtalk thread.
Tools and Scripts for Autodesk 3dsMax
aside from what im trying to
aside from what im trying to do on CGTalk, I'm still curious to know how one would find the right angle 'pos' like demonstrated in the picture.
John Martini
Digital Artist
http://www.JokerMartini.com (new site)
`
this is a way around but its very simple:
-it just copy your plane to center of sphere
-enlarge plane
-find intersection between normal or (-normal) vector and new plane
Thanks for the alternate
Thanks for the alternate solution bud. I figured it out if you look at my first post.
John Martini
Digital Artist
http://www.JokerMartini.com (new site)