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.

Dark Physics & Dark A.I. & Dark Dynamix / set rotation to object = slowdown

Author
Message
wh1sp3r
20
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Czech republic
Posted: 19th Oct 2008 13:42
Hi,

I set every frame object's angles, because, I want to disable object's rotation.

Phy set rigid body rotation ControllerID, 0, YAngle, 0

I am controling only Y axis. When I use this command every frame, it slowdown gravity and movement of this object. Why gravity is affected?


PS: Real programmers aren't afraid of math!.
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 19th Oct 2008 20:35
Because when you SET a position or rotation, it resets all forces on the object to zero.

wh1sp3r
20
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Czech republic
Posted: 19th Oct 2008 21:13
BatVink: ah, I understand It was strange for me, because, i was changing only rotation. Thank you

I have another problem perhaps, you know, where is a problem.

PHY SET GRAVITY 0,-9.8,0

...

PHY MAKE RIGID BODY DYNAMIC SPHERE 1
PHY SET RIGID BODY MASS 1, 10

Ok, sphere here doesnt rotate, same with boxes. When I delete phy set body mass, all works correctly. Why I cant use body mass, its important in physics.


PS: Real programmers aren't afraid of math!.
Splurk
18
Years of Service
User Offline
Joined: 8th Apr 2006
Location: France/Montpellier
Posted: 20th Oct 2008 00:05
You cannot use Physic engine and directly play with its position/rotation/cinetics without reseting internal forces.
You have to play with forces and torques instead...

Login to post a reply

Server time is: 2024-09-19 17:04:07
Your offset time is: 2024-09-19 17:04:07