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.

DarkBASIC Discussion / Fixing an object a set point around another object using newxvalue

Author
Message
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 15th Oct 2004 23:50
Does anyone here know how to fix an object around another object so it follows the rotation and such? I've been trying for ages but its so confusing >_<.

This is what I've been using:



But that doesn't make object 1 completely respond to the rotation of object 10.

Peace sells
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 16th Oct 2004 01:27 Edited at: 16th Oct 2004 01:31
It's almost right, just overcomplicated...



You also used object angle x() in your Z calc, a copy and paste mistake I imagine.

BatVink
http://biglaugh.co.uk/catalog AMD 3000+ Barton, 512Mb Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
Terms & Conditions apply
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 16th Oct 2004 04:10 Edited at: 16th Oct 2004 04:17
Finally! Me and TK515H couldn't work this out . Thanks for the help

EDIT: Eh...something doesnt seem quite right... ...I'll try and work out whats wrong..

Peace sells
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 16th Oct 2004 05:04
Damnit..it doesn't work quite as I wanted . I think I have a better idea..thanks anyway.

Peace sells
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 16th Oct 2004 07:20
It might be the Y value that's screwing you. If your local X and Z orientation are not "level", the Y calculation will be wrong.

...And that's why I bought EzRotate!

BatVink
http://biglaugh.co.uk/catalog AMD 3000+ Barton, 512Mb Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
Terms & Conditions apply
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 16th Oct 2004 08:16
lol ok..O_o

Peace sells

Login to post a reply

Server time is: 2025-05-24 19:12:37
Your offset time is: 2025-05-24 19:12:37