_mesh
The mesh interface is used to create simple meshes and insert them into the ogre scene. They are not intended for gameplay usage, but rather for simple debugging. If the user wishes to see ‘something on the screen’ this will be a useful interface for them.
Meshes do not interract with the world in any way, and each mesh sits on a separate scene node from the root.
Example
local s = _mesh.createMesh("ogrehead2.mesh");
_mesh.setPosition(s, 0, 30, 0);
_mesh.destroyMesh(s);
API
- createMesh(meshName)
- Arguments:
meshName (
String()) – The name of the ogre mesh resource to be created.
- Returns:
A User Data object representing the mesh.
Create a new mesh in the ogre scene and add it to the origin.
- destroyMesh(mesh)
- Arguments:
mesh (
UserData()) – The mesh to destroy.
Destroy a mesh in the scene.
- setPosition(mesh, x, y, z)
- Arguments:
mesh – The mesh to set the position of.
Set the position of a mesh in the scene.