Copperfield Engine 0.1
C++ Game Engine
Loading...
Searching...
No Matches
BoxCmp Struct Reference

Component used to detect collisions. More...

#include <default_components.hpp>

Public Member Functions

 BoxCmp (const coma::Vec3 &position, const coma::Vec3 &size={1.0f, 1.0f, 1.0f})
 Creates a BoxCmp. More...
 

Public Attributes

coma::Vec3 position_ = {0.0f,0.0f,0.0f}
 Position of the box relative to the TransformCmp position.
 
coma::Vec3 size_ = {1.0f,1.0f,1.0f}
 Size of the box not affected by the TransformCmp scale.
 

Detailed Description

Component used to detect collisions.

Constructor & Destructor Documentation

◆ BoxCmp()

BoxCmp::BoxCmp ( const coma::Vec3 position,
const coma::Vec3 size = {1.0f,1.0f,1.0f} 
)
inlineexplicit

Creates a BoxCmp.

Parameters
positionposition_
sizesize_