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 / Has anyone made a tutorial ro 3D Collision?

Author
Message
gamergod88
7
Years of Service
User Offline
Joined: 28th Apr 2016
Location:
Posted: 6th Jun 2016 23:25 Edited at: 6th Jun 2016 23:27
I have tried , but cannot figure it out. If someone could point me in the direction of a tutorial or write one. I just want to be able to move a block and have it fall if there is nothing below it.
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 7th Jun 2016 03:02
have a look at the examples here;
https://forum.thegamecreators.com/thread/216683
tboy
11
Years of Service
User Offline
Joined: 1st Jan 2013
Location: UK
Posted: 7th Jun 2016 15:34 Edited at: 7th Jun 2016 15:35
Have alook at https://www.patreon.com/codingmath?ty=h by Keith Peters.

Many great videos on CodingMath.
micky4fun
10
Years of Service
User Offline
Joined: 15th Sep 2013
Location: uk essex
Posted: 7th Jun 2016 19:15 Edited at: 7th Jun 2016 19:39
Hi All

gamergod88 , here is a little demo I have put together as I was having the same problem , took me a while to get my head around collision detection
The demos in BlinkOk's link are very good , but they use the Physic's commands and I did not want to use them

So this is what I came up with , I am no expert on this and could be a better way to do this ?
move the cube/player up and down left and right using ADWS keys , the player will not go through the platform
and will move along and fall off if pressing down when at end of platform
hope this might help you , this does X and Y but does not include the Z 3d aspect



Mick
gamergod88
7
Years of Service
User Offline
Joined: 28th Apr 2016
Location:
Posted: 9th Jun 2016 10:50
Micky I like your solution, but how could I get the ObjectSphereSlide to shift to the right and left dynamically?
gamergod88
7
Years of Service
User Offline
Joined: 28th Apr 2016
Location:
Posted: 10th Jun 2016 18:45
bump

Login to post a reply

Server time is: 2024-03-28 23:54:36
Your offset time is: 2024-03-28 23:54:36