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 / Rotating a Dynamic Physics object?

Author
Message
Tobias_Ripper
11
Years of Service
User Offline
Joined: 24th Mar 2013
Location: REPCONN inc.
Posted: 9th Apr 2019 21:27 Edited at: 9th Apr 2019 21:30
Greetings fellas.

I've got a character controller and I've got a rotating platform. I need the player to jump on the rotating platform, however whenever I jump on it, it resets to the initial position.

Object Created using:


I rotate the platform using:





Eisenstadt Studio: Eisenstadtstudio.com
Composers Page: Milesthatch.net
Tobias_Ripper
11
Years of Service
User Offline
Joined: 24th Mar 2013
Location: REPCONN inc.
Posted: 9th Apr 2019 21:47
Ok for one, I have disabled the sleep mode for these physics objects so:
SetObject3DPhysicsCanSleep(box2, 0)

Eisenstadt Studio: Eisenstadtstudio.com
Composers Page: Milesthatch.net
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: 10th Apr 2019 19:57
You can not manually rotate or position a dynamic object since it is controlled by the physics engine.
You need to use a kinematic 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-04-26 22:30:29
Your offset time is: 2024-04-26 22:30:29