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 GDK / Object Centering

Author
Message
ReiKumar
16
Years of Service
User Offline
Joined: 23rd Sep 2008
Location:
Posted: 22nd Oct 2009 00:54
Hey guys, I'm using some of the built in 3D models that were in the Dark Models folder and I'm having trouble getting their center. Is there a function that allows me to obtain the center of a model?

For example I'm using the below code to rotate the camera so I want my FPS model to rotate with it, but the rotation axis is behind the model, not through his center.

Is there a way to find the center of a model in the x,y and z dimensions?

Model Creation


Model Rotation Based on Mouse Movement
Isocadia
15
Years of Service
User Offline
Joined: 24th Jul 2009
Location:
Posted: 23rd Oct 2009 18:30
Well, use dbTurnObjectLeft/Right. That turns it around the objects axis.

Login to post a reply

Server time is: 2024-10-01 16:39:03
Your offset time is: 2024-10-01 16:39:03