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 / Jump3DPhysicsCharacterController()

Author
Message
Thestroyer
8
Years of Service
User Offline
Joined: 14th May 2016
Location:
Posted: 25th May 2016 15:21
Jump3DPhysicsCharacterController() doesn't seem to work for me. If i use it my controller doesnt move. Can someone tell me how it works exactly.
this is the code part i use for the controller:


vec = agk::CreateVector3(0, 0, 0);
cha = agk::CreateObjectBox(sizeX, sizeY, sizeZ);
agk::SetObjectPosition(cha, 100, 300, 100);
agk::Create3DPhysicsDynamicBody(cha);
agk::SetObjectShapeBox(cha);
agk::Create3DPhysicsCharacterController(cha, 1, vec, vec, 50);

to jump:
agk::Jump3DPhysicsCharacterController(cha);
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: 25th May 2016 15:57 Edited at: 25th May 2016 16:02
The character controller object can not be a dynamic object and you can not set a shape for it.
Only commands with the words character controller in it can be used with a character controller object.

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-11-25 05:42:49
Your offset time is: 2024-11-25 05:42:49