couch/core/Spatial.cpp

20 lines
362 B
C++
Raw Normal View History

2021-01-21 15:26:39 -06:00
#include "Spatial.h"
Name Spatial::GetType() const {return "Spatial";}
2021-01-24 16:37:35 -06:00
Spatial *Spatial::Create() {
return new Spatial;
}
Spatial *Spatial::Duplicate() {
Spatial *spatial = static_cast<Spatial*>(Node::Duplicate());
spatial->transform = transform;
return spatial;
}
Spatial *Spatial::Instance() {
return static_cast<Spatial*>(Node::Instance());
}