-
Notifications
You must be signed in to change notification settings - Fork 2
ObjectGeometryGroup
An object geometry group is a group of ObjectGeometries. You load these geometries from an .obj file. When creating those, make sure you save them as individual objects in the .obj file.
Object geometry coords found in the .obj file are in pixels, not meters. See ResouceManager's addObjectGeometryGroup for details on how to add a group from an object file.
Class ObjectGeometryGroup
Construct an object geometry group from Lua. You can use ResourceManager's addCustomObjectGeometryGroup() to track it if you'd like to.
Get the object geometry group's name.
ObjectGeometry& addObjectGeometry(ObjectGeometry& objectGeometry)
Add an ObjectGeometry. This allows you to separate custom-made object geometries into a group. Keep in mind that the name is fetched from the object geometry and it has to be unique in this group.
ObjectGeometry& findObjectGeometry(String objectGeometryName)
Find an ObjectGeometry within this group.
{ObjectGeometry&} getObjectGeometries()
Get all ObjectGeometries in this group. This is useful for adding all object geometries of a file in the game, for example.
- Understanding the Lua API reference
- Tutorial
- Units
- Notes
- Lua API reference
- Callbacks
- Global
- Game
- Engine
- ResourceManager
- Shader
- Texture
- TextureType
- ObjectGeometryGroup
- ObjectGeometry
- Sound
- SoundType
- GPUBuffer_uint
- GPUBuffer_vec2
- GPUBuffer_vec3
- InputManager
- KeyCode
- EntityManager
- Entity
- PhysicsBody
- PhysicsBodyType
- Camera
- Object
- TexturedObject
- ShadedObject
- Light
- GraphicsManager
- Utils
- IVec2
- Vec2
- Vec3
- Vec4