Class CoalSceneFileObject#

Inheritance Relationships#

Base Types#

Class Documentation#

class CoalSceneFileObject : public Karana::Scene::SceneFileObject, public Karana::Scene::CoalSceneNode#

SceneFileObject implementation for CoalScene.

See Scene layer for more discussion on the scene layer.

Public Functions

CoalSceneFileObject(std::string_view name, const kc::ks_ptr<Scene> &scene, const std::filesystem::path &filepath, layer_t layers, bool is_convex)#

CoalSceneFileObject constructor. The constructor is not meant to be called directly. Please use the create(…) method instead to create an instance.

Parameters:
  • name – Name of the CoalSceneFileObject.

  • scene – The CoalScene to add the part to.

  • filepath – Filepath to populate the node from.

  • layers – Layers to use for the CoalSceneFileObject.

  • is_convex – Whether the file’s shapes are all convex.

~CoalSceneFileObject()#

Destructor.

Public Static Functions

static kc::ks_ptr<CoalSceneFileObject> create(std::string_view name, const kc::ks_ptr<CoalScene> &scene, const std::filesystem::path &filepath, layer_t layers = LAYER_PHYSICAL, bool is_convex = false)#

Create a CoalSceneFileObject.

Parameters:
Returns:

The new CoalScene file node.