MeshNode
Mesh are bundles of primitives, each of which has its own geometry and material.
All primitives in a particular renderable share a set of rendering attributes, such as whether they cast shadows or use vertex skinning. Kotlin usage example:
val entity = EntityManager.get().create()
RenderableManager.Builder(1)
.boundingBox(Box(0.0f, 0.0f, 0.0f, 9000.0f, 9000.0f, 9000.0f))
.geometry(0, RenderableManager.PrimitiveType.TRIANGLES, vb, ib)
.material(0, material)
.build(engine, entity)
scene.addEntity(renderable)
To modify the state of an existing renderable, clients should first use RenderableManager to get a temporary handle called an instance. The instance can then be used to get or set the renderable's state. Please note that instances are ephemeral; clients should store entities, not instances.
See also
Constructors
Properties
Changes the bounding box used for frustum culling.
The shape to used to detect collisions for this Node.
Retrieves the set of enabled attribute slots in the given primitive's VertexBuffer.
Changes whether or not the renderable casts shadows.
Changes whether or not the renderable can receive shadows.
The node can be selected when a touch event happened.
Changes the material instance binding for the first primitive.
Changes the material instance binding for the given primitive.
Gets the morph target count on a renderable.
Gets the immutable number of primitives in the given renderable.
Quaternion rotation.
The smooth position, rotation and scale speed.
World-space position.
The world-space quaternion.
World-space rotation.
World-space scale.
Transform from the world coordinate system to the coordinate system of this node.
World transform of a transform component (i.e. relative to the root).
Functions
Returns whether a light channel is enabled on a specified renderable
Converts a position in the world-space to a local-space of this node.
Converts a quaternion in the world-space to a local-space of this node.
Converts a rotation in the world-space to a local-space of this node.
Converts a scale in the world-space to a local-space of this node.
Converts a transform in the world-space to a local-space of this node.
Converts a node transform in the world-space to a local-space of this node.
Creates a MaterialInstance Java wrapper object for a particular material instance.
Converts a position in the local-space of this node to world-space.
Converts a quaternion in the local-space of this node to world-space.
Converts a rotation in the local-space of this node to world-space.
Converts a scale in the local-space of this node to world-space.
Converts a transform in the local-space of this node to world-space.
Converts a node transform in the local-space of this node to world-space.
Rotates the node to face a point in world-space.
Rotates the node to face another node.
Responds to moving events for a gesture in progress
Responds to the beginning of a moving gesture
Responds to the end of a move gesture
Responds to rotating events for a gesture in progress.
Responds to the beginning of a scaling gesture.
Responds to the end of a scale gesture.
Responds to scaling events for a gesture in progress.
Responds to the beginning of a scaling gesture. Reported by new pointers going down.
Responds to the end of a scale gesture. Reported by existing pointers going up.
The transformation (position, rotation or scale) of the Node has changed.
The transformation (position, rotation or scale) of the Node has changed.
Tests to see if this node collision shape overlaps the collision shape of any other nodes in the scene using Node.collisionShape.
Tests to see if a node is overlapping any other nodes within the scene using Node.collisionShape.
Changes the drawing order for blended primitives.
Changes the drawing order for blended primitives. The drawing order is either global or local (default) to this Renderable.
Changes whether or not frustum culling is on.
Changes the geometry for the given renderable instance.
Changes whether the blend order is global or local to this Renderable (by default)
Changes whether the blend order is global or local to this Renderable (by default)
Changes the visibility bits.
Changes the visibility.
Enables or disables a light channel.
Changes the material instance binding for the given primitive.
Changes the material instance binding for all primitives.
Utility method to change morph target buffer for the given primitive.
Changes the morph target buffer for the given primitive.
Updates the vertex morphing weights on a renderable, all zeroes by default.
Changes the coarse-level draw ordering.
Changes whether or not the renderable can use screen-space contact shadows.
Associates a SkinningBuffer to a renderable instance.
Change the node transform.
Change the node world transform.