Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK .NET / Object3D.Intersect - LOS

Author
Message
DrkTemplar
12
Years of Service
User Offline
Joined: 18th Aug 2011
Location:
Posted: 28th Jul 2012 03:12
What is the purpose of Intersect, and how can I use it?

I thought I could use this to determine if two objects had LOS, am I using this incorrectly?

How can I determine if object1 had LOS with object2 in a 3D environment?
jojoofu
15
Years of Service
User Offline
Joined: 23rd Feb 2009
Location: Where ever Carmen Sandiego is
Posted: 8th Aug 2012 04:11
The intersect method draws a line between objects and test if that line comes into contact with a third object. For example you have two players on a field with a house. You want to know if the house if between the two players. You simply call the intersect method pass the players as point one and two. Then the house as the test object.

" The best slaves are the ones who think they are free. "
DrkTemplar
12
Years of Service
User Offline
Joined: 18th Aug 2011
Location:
Posted: 22nd Sep 2012 01:02
Can you give example code?

In your example, how can you pass both player points, and a test object when the method only accepts 6 parameters, 3 of which are one objects position, the other 3 being the second object. No parameter for the Test Object you mention.

What am I missing? Thanks!

Login to post a reply

Server time is: 2024-04-20 14:36:38
Your offset time is: 2024-04-20 14:36:38