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.

Author
Message
Broken_Code
14
Years of Service
User Offline
Joined: 20th Aug 2010
Location: Bremen, Germany
Posted: 15th Nov 2010 18:32 Edited at: 15th Nov 2010 18:43
After having read some of the posts on the forum it appears that ray casting is broken. However, in the vain hope that it's just me making a mistake can some one give some example code on how ray casting is used?

Here's how I'm doing it:


and the values returned are all zero. I've used Newton physics for some time now and it may be slow but at least it worked!

Thanks,
Broken_Code

[EDIT]
Please excuse my stupidity, the get pick vector commands are already unit vectors (if the distance into the screen is set to 1) and are not (as I thought) global positions. I changed the code to the folowing and it now works fine.



Sorry for the useless thread.
Broken_Code

Login to post a reply

Server time is: 2024-11-24 14:01:38
Your offset time is: 2024-11-24 14:01:38