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.

AppGameKit Classic Chat / Are raycasting functions working?

Author
Message
jfroco
14
Years of Service
User Offline
Joined: 1st Dec 2009
Location: Chile
Posted: 25th Aug 2011 06:09
Hello,

I'm trying the raycast functions but I can't make them work

1) Issue with x and y.

This is the raycast example slightly modified:




I've got:

getraycastx =1040
getraycasty = 800

What does it mean?



2.- Issue with collision detection
I made the following test:



If I use y=240 I get no collision but if I change it to 241 I get collision...



I don't understand why is giving different results.

Please your help... I'm lost

Thank you
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 26th Aug 2011 02:15
Thanks, I missed off a transform from physics coordinates back to world coordinates, fixed in the next update.

Login to post a reply

Server time is: 2024-04-24 07:44:48
Your offset time is: 2024-04-24 07:44:48