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 / CharacterController (3D Physic) cannot stand on dynamic bodies?

Author
Message
hakimfullmetal
9
Years of Service
User Offline
Joined: 17th Feb 2015
Location:
Posted: 27th Jan 2016 10:10 Edited at: 27th Jan 2016 10:53
I tried to make the character controller stand on rigid bodies.

However the controller cannot stand properly on dynamic rigid bodies. The controller keeps on sliding off the dynamic bodies.

And when the controller is on static rigid bodies, it continuously keeps sliding to the side

Anybody knows what's going on?

Here's the code:


Use mouse to look around. 'W' key to move forward. Space key to jump

Stab in the Dark software
Valued Member
21
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 28th Jan 2016 12:59
Here is a couple of hints.

setObjectCollisionMode() is not used with the 3Dphysics commands.

There is a minimum size for objects when using 3D physics. 3.5 units.


The coffee is lovely dark and deep,and I have code to write before I sleep.
hakimfullmetal
9
Years of Service
User Offline
Joined: 17th Feb 2015
Location:
Posted: 28th Jan 2016 16:09 Edited at: 28th Jan 2016 16:35
Thanks, I'm pulling my hair out over here.

Now that reminds me. If I remember correctly, we need to set the 'range' of the acceptable size of physic bodies in the world.

How do we do that again in AppGameKit?


Stab in the Dark software
Valued Member
21
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 28th Jan 2016 16:40
Link to the help files.

https://www.appgamekit.com/documentation/Reference/3DPhysics/Create3DPhysicsWorld.htm
The coffee is lovely dark and deep,and I have code to write before I sleep.

Login to post a reply

Server time is: 2024-04-26 13:09:03
Your offset time is: 2024-04-26 13:09:03