Lysa  0.0
Lysa 3D Engine
ConvexHullShape Class Reference

Detailed Description

A convex hull collision shape

+ Inheritance diagram for ConvexHullShape:

Public Member Functions

 ConvexHullShape (const std::shared_ptr< Node > &node, const PhysicsMaterial *material=nullptr, const std::string &resName="ConvexHullShape")
 
std::shared_ptr< Resourceduplicate () const override
 
- Public Member Functions inherited from Shape
 Shape (const PhysicsMaterial *material, const std::string &resName)
 
auto & getMaterial () const
 
- Public Member Functions inherited from Resource
 Resource (const std::string &name)
 
auto getId () const
 
const auto & getName () const
 
bool operator== (const Resource &other) const
 
bool operator< (const Resource &other) const
 
bool operator> (const Resource &other) const
 
- Public Member Functions inherited from Object
void connect (const Signal::signal &name, const Signal::Handler &handler)
 
void connect (const Signal::signal &name, const std::function< void ()> &handler)
 
void emit (const Signal::signal &name, void *params=nullptr)
 
virtual std::string toString () const
 
 Object () = default
 
virtual ~Object () = default
 

Additional Inherited Members

- Protected Attributes inherited from Shape
PhysicsMaterial * material
 

Constructor & Destructor Documentation

ConvexHullShape ( const std::shared_ptr< Node > &  node,
const PhysicsMaterial *  material = nullptr,
const std::string &  resName = "ConvexHullShape" 
)

Creates a ConvexHullShape using the vertices of the Mesh of the first MeshInstance found in the node tree. Uses the local transform of the node when creating the shape.

Member Function Documentation

std::shared_ptr<Resource> duplicate ( ) const
overridevirtual

Duplicates a resource. Warning: not implemented on all resource types, check documentation for the resource type before using it.

Reimplemented from lysa::Resource::duplicate()