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 / 3d collision problems

Author
Message
Prismaball studios
3
Years of Service
User Offline
Joined: 14th Nov 2020
Location:
Posted: 4th Dec 2020 17:18
Hello first time here. I have recently started making a 3d game but i ran into a problem. Basically i dont know how to make things colide so you cant pass through objects. I have setted up a basic player movement and rotating. I have setted up the world gravity and created the 3d physics world. I dont know how to continue from now on.


thats all i done it doesnt say anything the screen goes black and the loading cursor appears then it shuts down. Anyone care to help?
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 4th Dec 2020 20:25 Edited at: 4th Dec 2020 20:29
add Step3DPhysicsWorld() before Sync() to Update the Physics world.

otherwise, when using built-in 3d physics, the point is to let the physics system (bullet3d) handle collision for you. you've done some set up to that end but you're circumventing it by moving objects manually using (basic) 3d commands such as MoveObjectLocalZ() vs using 3d Physics Commands such as the CharacterController commands found there or SetObject3DPhysicsLinearVelocity(), etc..

meanwhile, download the official bullet demos which may help get you started on the right path?
[My Itch.io Home] [Now Playing]
[AGK Resource Directory] [TGC @ GitHub]
[CODE lang=AGK] YOUR CODE HERE [/CODE]
[VIDEO=youtube] VIDEO ID [/VIDEO]
[Google Forum Search]
Prismaball studios
3
Years of Service
User Offline
Joined: 14th Nov 2020
Location:
Posted: 5th Dec 2020 16:05
It still doesn't want to load even if I add Step3DPhysicsWorld() but i will definitely look at the demos thank you
Prismaball studios
3
Years of Service
User Offline
Joined: 14th Nov 2020
Location:
Posted: 5th Dec 2020 16:11
Also It seems like i cant run those demos due to an error: failed to open for reading main.agc
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 5th Dec 2020 17:20
i re-downloaded the demos and a couple of them have issue with the logo not being a power of 2 image.

// or remove these lines and they run fine:

SetImageWrapU( bulletLogo,1 )
SetImageWrapV( bulletLogo,1 )

[My Itch.io Home] [Now Playing]
[AGK Resource Directory] [TGC @ GitHub]
[CODE lang=AGK] YOUR CODE HERE [/CODE]
[VIDEO=youtube] VIDEO ID [/VIDEO]
[Google Forum Search]
Prismaball studios
3
Years of Service
User Offline
Joined: 14th Nov 2020
Location:
Posted: 6th Dec 2020 08:22
I tried all but it still doesnt work
None work. Am i going crazy?

Login to post a reply

Server time is: 2024-03-29 13:06:09
Your offset time is: 2024-03-29 13:06:09