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 / question about the create and postion commands

Author
Message
raar
20
Years of Service
User Offline
Joined: 9th Jul 2004
Location:
Posted: 27th Jul 2004 04:08
if i create and place an object
example:
make object box 1,1,3,1 (thus a box of lenght 1 in x lenght 3 in y and lenght 1 in z)
and place it like this
position object 1,14,2,0
Is the middle of the object placed at these coordinates or is the left buttom corner of the object placed at these coordinates?

and if i make a plain and a sphere (the plain is 1 high and the sphere is 1) do they touch (in 2d over the y axis) at plain y coordinate +0.5 and sphere y coordinate -0.5 (if the sphere is comming from above the box)?
Elron
20
Years of Service
User Offline
Joined: 22nd Jul 2004
Location: TX
Posted: 27th Jul 2004 04:20
MAKE OBJECT BOX Object Number, X, Y, Z
POSITION OBJECT Object Number, X, Y, Z

if MATRIX 1 is 1024
then BOX 1 is centered if x=512, y=0, z=512

hope that helps
i'm new to this

E

"if it's not broke, i have not tried"
raar
20
Years of Service
User Offline
Joined: 9th Jul 2004
Location:
Posted: 27th Jul 2004 04:26
also can i use the object collision command to find the collision between a plain and a sphere?
Elron
20
Years of Service
User Offline
Joined: 22nd Jul 2004
Location: TX
Posted: 27th Jul 2004 05:18
I think (someone please verify) that collision works only with other objects

the distance between object and plain(matrix) is:

POSITION OBJECT Object Number, x=512, y=0, z=512

is that what you wanted?

E

"if it's not broke, i have not tried"
raar
20
Years of Service
User Offline
Joined: 9th Jul 2004
Location:
Posted: 27th Jul 2004 19:53
dunno
besides i am using dbce, and its 2D so i don't really use a matrix, i working on making a breakout clone (how original of me ) and my paddle is a plain and the ball is a sphere and i want to know if i can use the object collicion command to detect if there is collision between these two objects, otherwise i ll have to calculate it, when they hit and do the same with the "blocks" you have to destroy with the paddle

Login to post a reply

Server time is: 2024-09-22 18:26:55
Your offset time is: 2024-09-22 18:26:55