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.

Code Snippets / glue object to object

Author
Message
Zokomoko
22
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 3rd Aug 2004 09:19 Edited at: 3rd Aug 2004 09:40
I just made these functions, maybe some people could find them usefull.(DBP)
I wrote this specifically for my code, but i changed it a little bit so you can use it and understand it.
I works very well in my game, but i haven't tested it in beyond the needs of my code).
Feel free to change anything

explanation how to use it:
the function uses the position of the glued object relatively to the "mother" object. so let's see there's a cube 10 units straight forward of another cube, and you want to glue the first cube to the second cube, you use the function, and the cube stays 10 units straight forward of that another cube.

update:
in the update glued objects function you need to change the following:
instead of update_glued_objects(i)
you need update_glued_objects()

just delete the "i"
Zokomoko
22
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 3rd Aug 2004 22:33
updated, fixed a bug.
use this version:

Login to post a reply

Server time is: 2024-11-23 19:25:33
Your offset time is: 2024-11-23 19:25:33