Before updating to Windows 10 you may need to return your Pro license. More information here
Using normal Java in Unity
GameObject.Find("Body").collider.center = Vector3(0,0,0);
How do I do it in Java with #pragma strict?
Apr 25, 2012 at 08:16 PM
Apr 25, 2012 at 07:55 PM
This should work:
GameObject.Find("Body").collider.bounds.center = Vector3(0,0,0);
Tell me if you still have trouble. Good luck.
Apr 25, 2012 at 09:57 PM
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
Once you sign in you will be able to subscribe for any updates here
Answers and Comments
The best place to ask and answer questions about development with Unity.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Before updating to Windows 10 you may need to return your Pro license. More information here.
To help users post good questions and use the site effectively we have posted a tutorial video. Please check it out.
asked: Apr 25, 2012 at 08:16 PM
Seen: 1033 times
Last Updated: Apr 25, 2012 at 09:57 PM
How to Instantiate GameObject on top of collider? (C#
How to get center of collider in hierarchy
how to change sphere/capsule collider, it sizes and the center
Move sprite depending on its collider position
FPS collider center offsets camera pivot?
How do I check for collisions when I move objects based on Time.deltaTime?
Overlap Circle - am I not using it correctly?
Why doesn't OnTriggerEnter2D get called?
NGUI UIButton Event question