ZeroZero Game Engine  v0.0
A 3D game engine using Vulkan & Jolt
Public Member Functions | List of all members
ConvexHullShape Class Reference

Detailed Description

A convex hull collision shape

Inheritance diagram for ConvexHullShape:
Shape Resource Object

Public Member Functions

 ConvexHullShape (const shared_ptr< Node > &node, const string &resName="ConvexHullShape")
 
 ConvexHullShape (const shared_ptr< Mesh > &mesh, const string &resName="ConvexHullShape")
 
 ConvexHullShape (const vector< vec3 > &points, const string &resName)
 
shared_ptr< Resourceduplicate () const override
 
- Public Member Functions inherited from Resource
auto getId () const
 
const auto & getName () const
 
string toString () const override
 
- Public Member Functions inherited from Object
void connect (const Signal::signal &name, const Signal::Handler &handler)
 
void connect (const Signal::signal &name, const function< void ()> &handler)
 
void emit (const Signal::signal &name, void *params=nullptr)
 

Constructor & Destructor Documentation

ConvexHullShape ( const shared_ptr< Node > &  node,
const string &  resName = "ConvexHullShape" 
)
explicit

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.

ConvexHullShape ( const shared_ptr< Mesh > &  mesh,
const string &  resName = "ConvexHullShape" 
)
explicit

Creates a ConvexHullShape using the vertices of the Mesh

ConvexHullShape ( const vector< vec3 > &  points,
const string &  resName 
)

Creates a ConvexHullShape using a list of vertices

Member Function Documentation

shared_ptr<Resource> duplicate ( ) const
overridevirtual

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

Reimplemented from z0::Resource::duplicate()