Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sphere add physics - falling down to the infinity #204

Open
janosdupai opened this issue May 9, 2023 · 1 comment
Open

Sphere add physics - falling down to the infinity #204

janosdupai opened this issue May 9, 2023 · 1 comment

Comments

@janosdupai
Copy link

I want to create a sphere into the AR screen, and with a touch/drag i want to "throw" this spehere.

Is this possible somehow?

I tried with the following code, but the sphere is falling everytime down, and I also can not add any touch recognizer to the node.

 final sphere = ARKitSphere(materials: [image], radius: 0.1);

      ballNode = ARKitNode(
        geometry: sphere,
          physicsBody: ARKitPhysicsBody(
            ARKitPhysicsBodyType.dynamicType,
            categoryBitMask: BodyType.sphere.index + 1,
          ),
        position: vector.Vector3(0, 0.2, 0.3)
      );
@janosdupai
Copy link
Author

Is there any information?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant