Sphere add physics - falling down to the infinity
janosdupai opened this issue · 1 comments
janosdupai commented
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 commented
Is there any information?