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.

Newcomers AppGameKit Corner / Help me with simple collision

Author
Message
hoyoyo80
3
Years of Service
User Offline
Joined: 11th May 2016
Location:
Posted: 29th May 2016 02:29
Hi all, im still struggling to find out how agk basic collision work. Poor me for my understanding.haha. Can someone help to see my code to check the balling falling with print "collided". Should be simple but *sigh* but dont know why i still dont get it. Help check please

Mike Archer
4
Years of Service
User Offline
Joined: 19th Feb 2015
Location: Wales
Posted: 29th May 2016 22:36
You are checking for a collision with ball instead of court. Change the first parameter in ObjectRayCast to 'court'

hoyoyo80
3
Years of Service
User Offline
Joined: 11th May 2016
Location:
Posted: 30th May 2016 00:31
OMG Thats it! The help file dont tell me that, the first parameter is the "one to collide with" so i assume it for the ball.Hahaha.. Thanks

Login to post a reply

Server time is: 2019-11-12 19:27:38
Your offset time is: 2019-11-12 19:27:38