x


When playing game, all objects smush together

For some reason whenever I play my game(I have a floor, several objects, and a character)all the objects in the scene clump together around (0,0,0,). I can't figure out whats wrong. Thanks for the help. -Rov

more ▼

asked May 02 '12 at 07:29 PM

Rovalin gravatar image

Rovalin
62 6 15 21

Some more info would be useful, like the scripts you are running. Are you trying to move stuff with a script? Do you select all the objects somewhere in your code?

May 02 '12 at 07:37 PM GerryM

I have no scripts running, except for a character control one, but it happened before that anyways. A better description of what’s happening is this, when I push the play button the objects are no longer in their original spot (were I had previously set the up in the scene), and are instead all in the same spot. I hope that makes it a little clearer. -Rov

May 02 '12 at 09:46 PM Rovalin

Please don't post comments in the answer section.

May 02 '12 at 09:46 PM Fishman92

sounds like a parenting problem possibly in code, can you please show more? a screenshot of the hierarchy tree would be a good start. Something is parenting all objects to vector (0,0,0) do you use a 3rd party script on your objects?

May 02 '12 at 09:49 PM Karsten

Do you have animations on all these objects? Are the objects animated relative to their individual origins? If so, make each object the child of an empty gameObject, which will act as the local centre.

May 02 '12 at 10:40 PM syclamoth
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

I finally got it fixed. Thanks for the help.

-Rov

more ▼

answered May 06 '12 at 03:06 PM

Rovalin gravatar image

Rovalin
62 6 15 21

Please elaborate what the mistake was. It might be useful for others having the same problem.

May 06 '12 at 03:10 PM Piflik

It turns out that you have to un-check the "play automatically" box in the inspector. Then all the objects will be in their right spots. -Orv

Jan 04 at 05:09 PM Rovalin
(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:

x80
x52

asked: May 02 '12 at 07:29 PM

Seen: 441 times

Last Updated: Jan 04 at 05:09 PM