Log in or register to post comments

Rigidbody on ARCamera = Unwanted behaviour

August 30, 2011 - 10:13am #1

Hi,

Attaching a rigidbody to the ARCamera prefab is causing problems... I have a few Game Objects set as children of the ARCamera. But as soon as I add a rigidbody to any of the children GameObjects or to the ARCamera, the children disappear when I run the app on my iPhone. Running the game in Unity however seems to work just fine.

Are there any known issues with attaching rigidbody to the ARCamera or its children?

thanks,
Kedar

Re: Rigidbody on ARCamera = Unwanted behaviour

September 4, 2011 - 7:20am #3

Is it possible that the object w/ the Rigidbody is falling through another surface, so that it appears to disappear?

I've seen that happen if they are positioned on planes and objects w/o colliders attached. For example if the RB is simply sitting on top of an imagetarget. It will fall below the surface and no longer be visible.

You can constrain the position of a RB dimensionally using the Contraints options in the Rigidbody pane that's attached to your object - e.g. check Y to prevent movement along the Y axis.

Re: Rigidbody on ARCamera = Unwanted behaviour

August 31, 2011 - 10:26am #2

Are you leaving the Use Gravity flag checked on the rigidbody? If you have a rigidbody attached to the camera this flag will have no effect, as the camera is being repositioned each frame that a trackable is in view. If you have a rigidbody attached to a child of the camera, however, gravity will pull the object away from the camera, depending on the camera's orientation. The camera orientation is constantly changing as you view a trackable from different angles.

If that isn't the problem, please describe your scene layout and goals. Thanks!

- Kim

Log in or register to post comments