x


How to Access GameObject.collider.cente in #pragma strict

Using normal Java in Unity

GameObject.Find("Body").collider.center = Vector3(0,0,0);

How do I do it in Java with #pragma strict?

more ▼

asked Apr 25, 2012 at 08:16 PM

Maxchaos gravatar image

Maxchaos
0 3 2 2

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

1 answer: sort voted first

This should work:

 GameObject.Find("Body").collider.bounds.center = Vector3(0,0,0);

Tell me if you still have trouble. Good luck.

more ▼

answered Apr 25, 2012 at 09:57 PM

Lttldude gravatar image

Lttldude
1.3k 4 18 18

(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:

x3081
x133
x6

asked: Apr 25, 2012 at 08:16 PM

Seen: 1025 times

Last Updated: Apr 25, 2012 at 09:57 PM