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.

Newcomers DBPro Corner / set obj radius help please

Author
Message
Cyril Grey
19
Years of Service
User Offline
Joined: 28th Jan 2005
Location:
Posted: 26th Jun 2005 00:57
I have an instanced wall along the perimeter of a matrix. When I SET OBJ RADIUS on the originally loaded obj., collision works great; however when I use the SET OBJ RADIUS on the instanced versions of the wall, it does not work properly. I can remedy this by using MAKE OBJ COLLISION BOX for each instance. Is this efficient, or is there a better way?

Thank you,

Cyril

With math all things are possible
Cyril Grey
19
Years of Service
User Offline
Joined: 28th Jan 2005
Location:
Posted: 26th Jun 2005 01:07 Edited at: 26th Jun 2005 01:11
Here is the code for placing the wall.

Thanks

load object "brick_wall_X_02.x",2
set object radius 2,20
position object 2,32,10,0
show object 2

`create instanced brick wall along matrix perimeter
for x=10 to 40
instance object x,2
`set object radius x,32 this line doesn't work right
make object collision box x,-10,-10,-10,10,10,10,0
position object x,(32*(x-8)),10,0
show object x
next x

With math all things are possible
the fake Mr T
19
Years of Service
User Offline
Joined: 6th Jun 2005
Location:
Posted: 1st Jul 2005 17:59
the prolem may be the fact that the radius of the instance(s) are too big.

Login to post a reply

Server time is: 2024-09-23 23:27:42
Your offset time is: 2024-09-23 23:27:42