|
@@ -65,14 +65,14 @@ You never create a Spatial with `+++<strike>Spatial s = new Spatial();</strike>+
|
|
|
|
|
|
The polygon xref:scene/mesh.adoc[Mesh] inside a Geometry can be one of three things:
|
|
The polygon xref:scene/mesh.adoc[Mesh] inside a Geometry can be one of three things:
|
|
|
|
|
|
-* *Shapes:* The simplest type of Meshes are jME's default xref:jme3/advanced/shape.adoc[Shape]s such as cubes and spheres. You can use several Shapes to build complex Geometries. Shapes are built-in and can be created without using the AssetManager.
|
|
|
|
-* *3D Models:* xref:jme3/advanced/3d_models.adoc[3D models and scenes] are also made up of meshes, but are more complex than Shapes. You create Models and Scenes in external 3D Mesh Editors and export them as Ogre XML or Wavefront OBJ. Use the xref:asset/asset_manager.adoc[Asset Manager] to load models into a your jME3 game.
|
|
|
|
|
|
+* *Shapes:* The simplest type of Meshes are jME's default xref:scene/shape/shape.adoc[Shape]s such as cubes and spheres. You can use several Shapes to build complex Geometries. Shapes are built-in and can be created without using the AssetManager.
|
|
|
|
+* *3D Models:* xref:scene/3d_models.adoc[3D models and scenes] are also made up of meshes, but are more complex than Shapes. You create Models and Scenes in external 3D Mesh Editors and export them as Ogre XML or Wavefront OBJ. Use the xref:asset/asset_manager.adoc[Asset Manager] to load models into a your jME3 game.
|
|
* *Custom Meshes:* Advanced users can create xref:scene/custom_meshes.adoc[Custom Meshes] programmatically.
|
|
* *Custom Meshes:* Advanced users can create xref:scene/custom_meshes.adoc[Custom Meshes] programmatically.
|
|
|
|
|
|
|
|
|
|
== What is a Clone?
|
|
== What is a Clone?
|
|
|
|
|
|
-Cloned spatials share the same mesh, while each cloned spatial can have its own local transformation (translation, rotation, and scale) in the scene. This means you only use `clone()` on spatials whose meshes never change. The most common use case for cloning is when you use several Spatials that are based on the same xref:jme3/advanced/shape.adoc[Shape]s (e.g. trees, crates).
|
|
|
|
|
|
+Cloned spatials share the same mesh, while each cloned spatial can have its own local transformation (translation, rotation, and scale) in the scene. This means you only use `clone()` on spatials whose meshes never change. The most common use case for cloning is when you use several Spatials that are based on the same xref:scene/shape/shape.adoc[Shape]s (e.g. trees, crates).
|
|
|
|
|
|
The second use case is: When you load a model using `loadModel()` from the AssetManager, you may automatically get a `clone()`ed object. In particular:
|
|
The second use case is: When you load a model using `loadModel()` from the AssetManager, you may automatically get a `clone()`ed object. In particular:
|
|
|
|
|