x


Finding center of a cube

Hi.

How to find a cube's center? Let's say I am making a checkers game and using flat cubes as cells. In order to move checker onto cell I need to determine position where it would be cell's center. Is there any built-in way to do that?

Thanks.

more ▼

asked Jul 10 '10 at 07:56 PM

Sergey 1 gravatar image

Sergey 1
6 3 3 6

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

for the standard unity cube, transform.position is the center

more ▼

answered Jul 10 '10 at 07:59 PM

Mike 3 gravatar image

Mike 3
30.5k 10 65 253

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5083
x289
x148
x88
x3

asked: Jul 10 '10 at 07:56 PM

Seen: 1744 times

Last Updated: Jul 10 '10 at 07:56 PM