VUFORIA Ground plane detection & Rigid Body - unity3d

Friends, I need a support.. I tried using VUFORIA GROUND PLANE DETECTION with Unity 2018.1
I found that when I add rigid body to the objects that I need to place on the plane, the objects just fall through the ground plane.. (I have added the collider to the ground plane as well)..
I also was able to recognise that the colliders get disabled until the object is placed on the plane itself.. So tried using ISKINEMATIC until the object is recognised on the plane and tried to disable the ISKINEMATIC once the object is recognised on the plane.. But this did not work even..
Can anyone support me with the solution to this problem??

I met same problem in Unity v2018.2.0f2.
My solution is freeze constraints position Y to avoid physic object fall down.
After user click on plane detection to put the object, I unfreeze it.
You can check my github
Regards,
LCD

Related

Cinemachine Collider not working, should the structures in Collide Against have Colliders?

I have a freelook camera, and added the extension of Cinemachine Collider.
I've set all my structures in the scene into CameraCollider layer, chosen this layer in "Collide Against" option under the Obstacle Detection of the extension, and used the Pull Camera Forward strategy.
(I've also set Near Clip Plane to 0.01 under Lens)
This doesn't work, and camera doesn't move forward when it hits a structure. I'm using Unity 2019.4 and Cinemachine 2.6.3.
Should I add colliders to my structures?
Please help!
Thanks.
I know what's happening, I really need to add colliders to my structures, and the size of the colliders need to be adjusted so they are not so small.
As said in the response, the way to solve this is to add colliders to your structures, and it wouldn't hurt setting those collider's z axis just a bit wider than the graphics

How to fix objects in the indoor environment with ArCore?

I need to insert some virtual objects in an indoor environment, but I need the position of these objects to be fixed. I have already tried using markers with the vuforia but it is complicated, it takes time to recognize. I'm thinking of using Google's ArCore. Does anyone know if this is possible and, if so, do they know how to do it?
I'm using Unity to do this. Can someone help me?
ARCore places the camera relative to the detected plane, so you will need a plane at some point so the application can locate the camera into the game.
HelloAR shows how this works, you may test into the unity editor and see how the camera moves arround the points and the detected plane.
One solution for your problem may be the image detection of ARCore + Plane detection, you place the image on the floor and when the image is detected you will have your objects in place while you move arround, but you will need to have a plane to move, not only the image detection, because if you don't, you will lose the objects once the camera loses the image.

ARCore collider on generated planes

I'm just playing around with AR core and want to have an object flying around the room and able to land. I'm unsure about how to add colliders to the planes that ARcore is generating based on the visuals on the room. Would this involve instantiating box colliders on the planes somehow?
The ARCore SDK's trackable planes are essentially identified flat surfaces such as the ground or a tabletop.
You can ask the SDK for a list of points for each trackable plane's boundary polygon (retrieved in clockwise order) and create a mesh from those points via triangulation. With the mesh ready, create a GameObject and add a MeshCollider component that references it.
I've created a free Unity plugin that does exactly this. Feel free to use it: https://github.com/jonas-johansson/ARCoreUtils.
I hope that helps!
Assuming you are doing this in Unity, you may want to use a Mesh Collider on the surface instead of a Box Collider.
I'm not sure about ARCore in Unity specifically, but in other AR frameworks it works something like in the attached screen shot, so I imagine it would be similar.
Adding a rigid body to the object causes gravity to be applied set gravity to 0 on the object rigid bidy. That will stop it falling away

crosshair pointer enter on vuforia unity project

I have successfully enabled 3d object detection through vuforia in Unity. I have attached a crosshair (reticle) at the centre of the screen in screenspace overlay. when the user moves his phone over the 3d object which is produced upon object detection, I want a label to appear when crosshair crosses different parts of the 3d object. I tried many methods including, collision, cursor and reticle. It is not working.
Is there any easy way to implement this so that I can use event trigger pointer enter to make few things happening on the game.
I successfully solved my problem. The solution is using worldspace crosshair.
Most of the crosshairs available in the assets are cemeraspace. therefore using a worldspace corsshair solved my problem. It may be useful to someone in future.

Stopping sprites from toppling off platform

I am new to Unity and am trying to create a simple 2d platformer. I have applied a box collider to my player sprite and the floor/platform its standing on. Now when I go over the platform, it toppes off of it as expected, but I want it to simple fall off it instead of toppling. How can I do this?
Also I saw a video of Unity Live Training in which he was using a separate circular collider for the player's feet.When I did this ,the sprite started rolling. Can anybody help me with this?
There is an "fixed angle" option on Rigidbody2D component, try enabling that