{"id":10207,"date":"2024-07-13T01:44:52","date_gmt":"2024-07-13T05:44:52","guid":{"rendered":"https:\/\/www.sceneri.com\/?post_type=sceneri-pro-docs&p=10207"},"modified":"2024-11-08T00:37:04","modified_gmt":"2024-11-08T05:37:04","slug":"primitives","status":"publish","type":"sceneri-pro-docs","link":"https:\/\/www.sceneri.com\/sceneri-pro-docs\/components-interface\/primitives\/","title":{"rendered":"Primitives"},"content":{"rendered":"

Overview<\/h3>\n

In Sceneri, a primitive 3D component refers to basic geometric shapes that can be easily created and manipulated in a 3D space. These primitives serve as foundational elements for building more complex objects and environments in your game. Sceneri provides several built-in primitive 3D shapes, which you can use directly in your scenes.<\/p>\n

Component Types<\/h3>\n<\/div><\/div><\/div>

Icon<\/p>\n<\/div><\/div><\/div>

Description<\/p>\n<\/div><\/div><\/div><\/div><\/div><\/div>

  • <\/span><\/div><\/div><\/div>

    Arc<\/h4><\/div>

    The arc is a quarter of a cylinder with the center hollow similar to the torus but hardened. With the arc component you can create unique obstacles with the rotation component and prototype pendulums.<\/p>\n<\/div><\/div><\/div><\/div><\/div>

    <\/div><\/div><\/li>\n
  • <\/span><\/div><\/div><\/div>

    Arrow<\/h4><\/div>

    The arrow is a simple composite of both of the cone and cylinder meshes. With the arrow component you can debug direction of objects or create directional indicators in your scenes.<\/p>\n<\/div><\/div><\/div><\/div><\/div>

    <\/div><\/div><\/li>\n
  • <\/span><\/div><\/div><\/div>

    Box<\/h4><\/div>

    This is a simple cube with sides one unit long, textured so that the image is repeated on each of the six faces. As it stands, a cube isn\u2019t really a very common object in most games but when scaled, it is very useful for walls, posts, boxes, steps and other similar items.<\/p>\n<\/div><\/div><\/div><\/div><\/div>

    <\/div><\/div><\/li>\n
  • <\/span><\/div><\/div><\/div>

    Capsule<\/h4><\/div>

    A capsule is a cylinder with hemispherical caps at the ends. The object is one unit in diameter and two units high (the body is one unit and the two caps are half a unit each). It is textured so that the image wraps around exactly once, pinched at each hemisphere\u2019s apex.<\/p>\n<\/div><\/div><\/div><\/div><\/div>

    <\/div><\/div><\/li>\n
  • <\/span><\/div><\/div><\/div>

    Cone<\/h4><\/div>

    The Cone Component is a a geometric shape that resembles a cone deriving from a pyramid, which can be used for various purposes, such as visual representation, collision detection, or physics interactions.<\/p>\n<\/div><\/div><\/div><\/div><\/div>

    <\/div><\/div><\/li>\n
  • <\/span><\/div><\/div><\/div>

    Cylinder<\/h4><\/div>

    This is a simple cylinder which is two units high and one unit in diameter, textured so that the image wraps once around the tube shape of the body but also appears separately in the two flat, circular ends.<\/p>\n<\/div><\/div><\/div><\/div><\/div>

    <\/div><\/div><\/li>\n
  • <\/span><\/div><\/div><\/div>

    Plane<\/h4><\/div>

    The quad primitive resembles the plane but its edges are only one unit long and the surface is oriented in the XY plane of the local coordinate space. Also, a quad is divided into just two triangles whereas the plane contains two hundred.<\/p>\n<\/div><\/div><\/div><\/div><\/div>

    <\/div><\/div><\/li>\n
  • <\/span><\/div><\/div><\/div>

    Pyramid<\/h4><\/div>

    The pyramid primitive is a four-sided shape with a square base and a single apex point above the base. Pyramids can represent hills, buildings, or monuments in your game world, helping to block player movement or create visual interest.<\/p>\n<\/div><\/div><\/div><\/div><\/div>

    <\/div><\/div><\/li>\n
  • <\/span><\/div><\/div><\/div>

    Sphere<\/h4><\/div>

    This is a sphere of unit diameter (ie, 0.5 unit radius), textured so that the entire image wraps around once with the top and bottom \u201cpinched\u201d at the poles. Spheres are obviously useful for representing balls, planets and projectiles.<\/p>\n<\/div><\/div><\/div><\/div><\/div>

    <\/div><\/div><\/li>\n
  • <\/span><\/div><\/div><\/div>

    Torus<\/h4><\/div>

    The torus primitive is a donut-shaped object characterized by a circular ring that curves around a central void. In gameplay, a torus can be utilized as a race track for a futuristic hovercraft game, where players navigate around the ring-shaped course.<\/p>\n<\/div><\/div><\/div><\/div><\/div>

    <\/div><\/div><\/li>\n<\/ul><\/div><\/div><\/div>

    Features of Primitive 3D Components:<\/h3>\n
      \n
    • Easy to Create<\/strong>: You can create these shapes from the Add Component menu (Viewport > Add Components > [Primitive Type]) without needing to model them in a 3D software package.<\/li>\n
    • Transformations<\/strong>: You can easily manipulate these objects in terms of position, rotation, and scale using Sceneri’s gizmo.<\/li>\n
    • Materials and Textures<\/strong>: You can assign materials to these primitives to give them different colors, textures, and visual effects.<\/li>\n
    • Colliders<\/strong>: Each primitive automatically includes a collider (like BoxCollider for cubes) that allows for collision detection with other objects.<\/li>\n
    • Lightweight<\/strong>: Since they are simple shapes, they are efficient to render and suitable for prototyping or as placeholders while developing.<\/li>\n<\/ul>\n

      Use Cases:<\/h3>\n
        \n
      • Prototyping<\/strong>: Quickly building levels or testing mechanics without worrying about detailed models.<\/li>\n
      • Environment Design<\/strong>: Creating basic structures or natural elements in your game world.<\/li>\n
      • Gameplay Elements<\/strong>: Using primitives for interactive objects, like buttons or collectible items.<\/li>\n<\/ul>\n

        Conclusion:<\/h3>\n

        Primitive 3D components are fundamental tools in Sceneri that allow developers to quickly and easily construct 3D environments and gameplay elements. They are especially useful during the early stages of game development for prototyping and iteration.<\/p>\n<\/div><\/div><\/div><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"

        Primitive Components can be used to create basic shapes or triggers around other objects, indicate debug information in design or create paths within a scene.<\/p>\n","protected":false},"author":251212454,"featured_media":0,"parent":10195,"menu_order":0,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"sceneri-docs-tag":[1720],"class_list":["post-10207","sceneri-pro-docs","type-sceneri-pro-docs","status-publish","format-standard","hentry","sceneri-docs-tag-components"],"acf":[],"yoast_head":"\nPrimitives - Sceneri<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sceneri.com\/sceneri-pro-docs\/components-interface\/primitives\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Primitives\" \/>\n<meta property=\"og:description\" content=\"Primitive Components can be used to create basic shapes or triggers around other objects, indicate debug information in design or create paths within a scene.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sceneri.com\/sceneri-pro-docs\/components-interface\/primitives\/\" \/>\n<meta property=\"og:site_name\" content=\"Sceneri\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/sceneriapp\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-08T05:37:04+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@sceneriapp\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.sceneri.com\/sceneri-pro-docs\/components-interface\/primitives\/\",\"url\":\"https:\/\/www.sceneri.com\/sceneri-pro-docs\/components-interface\/primitives\/\",\"name\":\"Primitives - Sceneri\",\"isPartOf\":{\"@id\":\"https:\/\/www.sceneri.com\/#website\"},\"datePublished\":\"2024-07-13T05:44:52+00:00\",\"dateModified\":\"2024-11-08T05:37:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.sceneri.com\/sceneri-pro-docs\/components-interface\/primitives\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sceneri.com\/sceneri-pro-docs\/components-interface\/primitives\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sceneri.com\/sceneri-pro-docs\/components-interface\/primitives\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.sceneri.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Components\",\"item\":\"https:\/\/www.sceneri.com\/sceneri-pro-docs\/components-interface\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Primitives\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.sceneri.com\/#website\",\"url\":\"https:\/\/www.sceneri.com\/\",\"name\":\"Sceneri\",\"description\":\"Collaborate in 3D.\",\"publisher\":{\"@id\":\"https:\/\/www.sceneri.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.sceneri.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.sceneri.com\/#organization\",\"name\":\"Sceneri\",\"url\":\"https:\/\/www.sceneri.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.sceneri.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.sceneri.com\/wp-content\/uploads\/2024\/06\/sceneri-logo-inverted.png\",\"contentUrl\":\"https:\/\/www.sceneri.com\/wp-content\/uploads\/2024\/06\/sceneri-logo-inverted.png\",\"width\":1630,\"height\":512,\"caption\":\"Sceneri\"},\"image\":{\"@id\":\"https:\/\/www.sceneri.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/sceneriapp\",\"https:\/\/x.com\/sceneriapp\",\"https:\/\/www.reddit.com\/r\/sceneriapp\/\",\"https:\/\/www.twitch.tv\/sceneriapp\",\"https:\/\/www.youtube.com\/@sceneriapp\",\"https:\/\/www.linkedin.com\/company\/sceneri\/\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Primitives - Sceneri","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sceneri.com\/sceneri-pro-docs\/components-interface\/primitives\/","og_locale":"en_US","og_type":"article","og_title":"Primitives","og_description":"Primitive Components can be used to create basic shapes or triggers around other objects, indicate debug information in design or create paths within a scene.","og_url":"https:\/\/www.sceneri.com\/sceneri-pro-docs\/components-interface\/primitives\/","og_site_name":"Sceneri","article_publisher":"https:\/\/www.facebook.com\/sceneriapp","article_modified_time":"2024-11-08T05:37:04+00:00","twitter_card":"summary_large_image","twitter_site":"@sceneriapp","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.sceneri.com\/sceneri-pro-docs\/components-interface\/primitives\/","url":"https:\/\/www.sceneri.com\/sceneri-pro-docs\/components-interface\/primitives\/","name":"Primitives - Sceneri","isPartOf":{"@id":"https:\/\/www.sceneri.com\/#website"},"datePublished":"2024-07-13T05:44:52+00:00","dateModified":"2024-11-08T05:37:04+00:00","breadcrumb":{"@id":"https:\/\/www.sceneri.com\/sceneri-pro-docs\/components-interface\/primitives\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sceneri.com\/sceneri-pro-docs\/components-interface\/primitives\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.sceneri.com\/sceneri-pro-docs\/components-interface\/primitives\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sceneri.com\/"},{"@type":"ListItem","position":2,"name":"Components","item":"https:\/\/www.sceneri.com\/sceneri-pro-docs\/components-interface\/"},{"@type":"ListItem","position":3,"name":"Primitives"}]},{"@type":"WebSite","@id":"https:\/\/www.sceneri.com\/#website","url":"https:\/\/www.sceneri.com\/","name":"Sceneri","description":"Collaborate in 3D.","publisher":{"@id":"https:\/\/www.sceneri.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sceneri.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.sceneri.com\/#organization","name":"Sceneri","url":"https:\/\/www.sceneri.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sceneri.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.sceneri.com\/wp-content\/uploads\/2024\/06\/sceneri-logo-inverted.png","contentUrl":"https:\/\/www.sceneri.com\/wp-content\/uploads\/2024\/06\/sceneri-logo-inverted.png","width":1630,"height":512,"caption":"Sceneri"},"image":{"@id":"https:\/\/www.sceneri.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/sceneriapp","https:\/\/x.com\/sceneriapp","https:\/\/www.reddit.com\/r\/sceneriapp\/","https:\/\/www.twitch.tv\/sceneriapp","https:\/\/www.youtube.com\/@sceneriapp","https:\/\/www.linkedin.com\/company\/sceneri\/"]}]}},"_links":{"self":[{"href":"https:\/\/www.sceneri.com\/wp-json\/wp\/v2\/sceneri-pro-docs\/10207"}],"collection":[{"href":"https:\/\/www.sceneri.com\/wp-json\/wp\/v2\/sceneri-pro-docs"}],"about":[{"href":"https:\/\/www.sceneri.com\/wp-json\/wp\/v2\/types\/sceneri-pro-docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.sceneri.com\/wp-json\/wp\/v2\/users\/251212454"}],"version-history":[{"count":0,"href":"https:\/\/www.sceneri.com\/wp-json\/wp\/v2\/sceneri-pro-docs\/10207\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.sceneri.com\/wp-json\/wp\/v2\/sceneri-pro-docs\/10195"}],"wp:attachment":[{"href":"https:\/\/www.sceneri.com\/wp-json\/wp\/v2\/media?parent=10207"}],"wp:term":[{"taxonomy":"sceneri-docs-tag","embeddable":true,"href":"https:\/\/www.sceneri.com\/wp-json\/wp\/v2\/sceneri-docs-tag?post=10207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}