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.

DLL Talk / Centre of Rotation is off-centre

Author
Message
Pricey
21
Years of Service
User Offline
Joined: 22nd Feb 2003
Location:
Posted: 22nd Aug 2005 15:48
Hello!

I am trying to use NGC 3.0 for my game, but the collision goes all funny and the objects are colliding as if they are rotated differently.

Its using ELLIP to POLY collision. It works perfectly when I don't rotate the objects.

The objects for the world (using POLY), have centres of rotation that are not in the middle of the object. Is this the problem? How to fixxy?

:: 3Ghz Pentium 4 / Hyper Threading, 1024mb RAM, 250GB HDD, 256mb Radeon 9600XT Graphics ::

:: Current Project: Quest ::
Louiz ofRohr
20
Years of Service
User Offline
Joined: 11th Nov 2004
Location:
Posted: 22nd Aug 2005 20:58
Do you want to fix the rotation centre to the middle of the object?
if you want, so use the command:

offset limb [objectNumber], 0, x,y,z

0 as limb number makes the program offset all the object, so you
can position the object to the rotation centre you want

Thest your code with primitives.. if the problem still happens,
then I don't know what is happening..
hehe.. sorry.. it is all in I can help you.. and I don't own
NGCollision


The collisions are happening as if the rotation centre is changed
or the rotation centre is really changed?
Is there some code snippet you could show?

The worst foe lies within the self..
Pricey
21
Years of Service
User Offline
Joined: 22nd Feb 2003
Location:
Posted: 23rd Aug 2005 22:20
thankyoooooooooouuuuuu!

i love you! (well, not really, but... THANKS)

:: 3Ghz Pentium 4 / Hyper Threading, 1024mb RAM, 250GB HDD, 256mb Radeon 9600XT Graphics ::

:: Current Project: Quest ::
Pricey
21
Years of Service
User Offline
Joined: 22nd Feb 2003
Location:
Posted: 24th Aug 2005 23:47
it didn't work...

damn

:: 3Ghz Pentium 4 / Hyper Threading, 1024mb RAM, 250GB HDD, 256mb Radeon 9600XT Graphics ::

:: Current Project: Quest ::

Login to post a reply

Server time is: 2024-11-21 18:47:04
Your offset time is: 2024-11-21 18:47:04