{"__v":0,"_id":"58f7a4c8cbd001190056cc10","category":{"version":"58f7a4c8cbd001190056cbf8","project":"578c4badbd223d2000cc1441","_id":"58f7a4c8cbd001190056cbfe","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-08-01T23:04:12.838Z","from_sync":false,"order":5,"slug":"api-reference","title":"API Reference"},"parentDoc":null,"project":"578c4badbd223d2000cc1441","user":"57bb7defafc18c0e00529cf1","version":{"__v":1,"_id":"58f7a4c8cbd001190056cbf8","project":"578c4badbd223d2000cc1441","createdAt":"2017-04-19T17:56:24.172Z","releaseDate":"2017-04-19T17:56:24.172Z","categories":["58f7a4c8cbd001190056cbf9","58f7a4c8cbd001190056cbfa","58f7a4c8cbd001190056cbfb","58f7a4c8cbd001190056cbfc","58f7a4c8cbd001190056cbfd","58f7a4c8cbd001190056cbfe"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.1.0","version":"1.1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-10-18T04:00:35.605Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":8,"body":"A stationary look around camera through which the user views the world. More than 1 camera may be placed within a scene.\n\n######Example use:\n```\n<ViroCamera\n    position={[0, 0, 0]}\n    rotation={[45, 0, 0]}\n    active={true}\n />\n```\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Props\"\n}\n[/block]\n##Required props\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"**active**\",\n    \"0-1\": \"**PropTypes.bool**\\n\\nIf true, sets the corresponding camera as the active one from which we render the world. Setting more than one active camera within a scene will result in undefined behavior.\"\n  },\n  \"cols\": 2,\n  \"rows\": 1\n}\n[/block]\n##Optional Props \n[block:parameters]\n{\n  \"data\": {\n    \"2-0\": \"**rotation**\",\n    \"3-0\": \"**style**\",\n    \"4-0\": \"**text**\",\n    \"5-0\": \"**transformBehaviors**\",\n    \"7-0\": \"**visible**\",\n    \"6-0\": \"**width**\",\n    \"h-0\": \"PropKey\",\n    \"h-1\": \"PropType\",\n    \"2-1\": \"PropTypes.arrayOf(PropTypes.number)\\n\\nPut the PropType Description here.\",\n    \"3-1\": \"stylePropType\",\n    \"4-1\": \"PropTypes.string\\n\\nPut the PropType Description here.\",\n    \"5-1\": \"PropTypes.arrayOf(PropTypes.string)\\n\\nPut the PropType Description here.\",\n    \"6-1\": \"PropTypes.number\\n\\nPut the PropType Description here.\",\n    \"7-1\": \"PropTypes.bool\\n\\nPut the PropType Description here.\",\n    \"0-0\": \"**position**\",\n    \"0-1\": \"**PropTypes.arrayOf(PropTypes.number)**\\n\\nCartesian position of the camera in 3D world space, specified as [x, y, z].\",\n    \"1-0\": \"**rotation**\",\n    \"1-1\": \"**PropTypes.arrayOf(PropTypes.number)**\\n\\nCartesian rotation of the camera in 3D world space, specified as [x, y, z].\"\n  },\n  \"cols\": 2,\n  \"rows\": 2\n}\n[/block]","excerpt":"","slug":"virocamera","type":"basic","title":"ViroCamera"}
A stationary look around camera through which the user views the world. More than 1 camera may be placed within a scene. ######Example use: ``` <ViroCamera position={[0, 0, 0]} rotation={[45, 0, 0]} active={true} /> ``` [block:api-header] { "type": "basic", "title": "Props" } [/block] ##Required props [block:parameters] { "data": { "0-0": "**active**", "0-1": "**PropTypes.bool**\n\nIf true, sets the corresponding camera as the active one from which we render the world. Setting more than one active camera within a scene will result in undefined behavior." }, "cols": 2, "rows": 1 } [/block] ##Optional Props [block:parameters] { "data": { "2-0": "**rotation**", "3-0": "**style**", "4-0": "**text**", "5-0": "**transformBehaviors**", "7-0": "**visible**", "6-0": "**width**", "h-0": "PropKey", "h-1": "PropType", "2-1": "PropTypes.arrayOf(PropTypes.number)\n\nPut the PropType Description here.", "3-1": "stylePropType", "4-1": "PropTypes.string\n\nPut the PropType Description here.", "5-1": "PropTypes.arrayOf(PropTypes.string)\n\nPut the PropType Description here.", "6-1": "PropTypes.number\n\nPut the PropType Description here.", "7-1": "PropTypes.bool\n\nPut the PropType Description here.", "0-0": "**position**", "0-1": "**PropTypes.arrayOf(PropTypes.number)**\n\nCartesian position of the camera in 3D world space, specified as [x, y, z].", "1-0": "**rotation**", "1-1": "**PropTypes.arrayOf(PropTypes.number)**\n\nCartesian rotation of the camera in 3D world space, specified as [x, y, z]." }, "cols": 2, "rows": 2 } [/block]