react-native-arkit
Advanced tools
Comparing version 0.0.7 to 0.0.8
12
index.js
@@ -27,5 +27,11 @@ // | ||
addCube(object) { | ||
return ARKitManager.addCube(object); | ||
} | ||
addBox(object) { return ARKitManager.addBox(object); } | ||
addSphere(object) { return ARKitManager.addSphere(object); } | ||
addCylinder(object) { return ARKitManager.addCylinder(object); } | ||
addCone(object) { return ARKitManager.addCone(object); } | ||
addPyramid(object) { return ARKitManager.addPyramid(object); } | ||
addTube(object) { return ARKitManager.addTube(object); } | ||
addTorus(object) { return ARKitManager.addTorus(object); } | ||
addCapsule(object) { return ARKitManager.addCapsule(object); } | ||
addPlane(object) { return ARKitManager.addPlane(object); } | ||
@@ -32,0 +38,0 @@ callback(name) { |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "React Native binding for iOS ARKit", | ||
@@ -10,0 +10,0 @@ "author": "Zehao Li <qft.gtr@gmail.com>", |
@@ -40,3 +40,11 @@ # react-native-arkit | ||
// Add a cube in the scene. Only support cube geometry at the moment | ||
this.arkit.addCube({ x: 0, y: 0, z: 0, width: 0.2, height: 0.2, length: 0.2 }); | ||
this.arkit.addBox({ x: 0, y: 0, z: 0, width: 0.1, height: 0.1, length: 0.1, chamfer: 0.01 }); | ||
this.arkit.addSphere({ x: 0.2, y: 0, z: 0, radius: 0.05 }); | ||
this.arkit.addCylinder({ x: 0.4, y: 0, z: 0, radius: 0.05, height: 0.1 }); | ||
this.arkit.addCone({ x: 0, y: 0.2, z: 0, topR: 0, bottomR: 0.05, height: 0.1 }); | ||
this.arkit.addPyramid({ x: 0.2, y: 0.15, z: 0, width: 0.1, height: 0.1, length: 0.1 }); | ||
this.arkit.addTube({ x: 0.4, y: 0.2, z: 0, innerR: 0.03, outerR: 0.05, height: 0.1 }); | ||
this.arkit.addTorus({ x: 0, y: 0.4, z: 0, ringR: 0.06, pipeR: 0.02 }); | ||
this.arkit.addCapsule({ x: 0.2, y: 0.4, z: 0, capR: 0.02, height: 0.06 }); | ||
this.arkit.addPlane({ x: 0.4, y: 0.4, z: 0, width: 0.1, height: 0.1 }); | ||
} | ||
@@ -43,0 +51,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59416
48
75
28