Posted: 18th Jun 2007 10:05
I have a cool idea for use of the CSG commands, but after reading some posts about the CSG commands, I fear they are not working.


Which command should I use, the help F1 thought it was the "for" command as in "perform" lol, I guess they are buggy and removed.

Here is a sample program.
I wish to remove the smaller cube from the larger cubes area.

+ Code Snippet
sync on : sync rate 60
make object cube 1,2 : position object 1,0,0,0
make object cube 2,1 : position object 2,0,1,0

`PERFORM CSG union 1, 2
`PERFORM CSG difference 1,2
`PERFORM CSG intersection 1,2

position camera 10,10,-10 : point camera 0,0,0

disable escapekey : while escapekey()=0
fastsync : endwhile

for i = 1 to 2
   if object exist(i)
      delete object i
   endif
next i
end

Posted: 18th Jun 2007 11:27
Does this help?

http://forum.thegamecreators.com/?m=forum_view&t=90484&b=6
Posted: 18th Jun 2007 13:03
thanks spooky, the first example works v1063 so i will explore it some more.
cheers

edit: All i missed was deleting the old object, cheers.