Starting basic physics, nothing fancy
This commit is contained in:
1 parent
da3613a7ff
commit
467f4d5a3f
32 files changed
+779
-286
No files matched your search
@@ -16,6 +16,9 @@ namespace Dawn {
|
||||
public SceneItemPrefab<SimpleSpinningCubePrefab>
|
||||
{
|
||||
public:
|
||||
MeshHost *meshHost;
|
||||
SimpleTexturedMaterial *material;
|
||||
|
||||
static std::vector<Asset*> prefabAssets(AssetManager *man) {
|
||||
return std::vector<Asset*>();
|
||||
}
|
||||
@@ -27,9 +30,9 @@ namespace Dawn {
|
||||
|
||||
void prefabInit(AssetManager *man) override {
|
||||
auto meshRenderer = this->addComponent<MeshRenderer>();
|
||||
auto meshHost = this->addComponent<MeshHost>();
|
||||
auto spinning = this->addComponent<ExampleSpin>();
|
||||
auto material = this->addComponent<SimpleTexturedMaterial>();
|
||||
meshHost = this->addComponent<MeshHost>();
|
||||
// auto spinning = this->addComponent<ExampleSpin>();
|
||||
material = this->addComponent<SimpleTexturedMaterial>();
|
||||
|
||||
meshHost->mesh.createBuffers(CUBE_VERTICE_COUNT, CUBE_INDICE_COUNT);
|
||||
CubeMesh::buffer(&meshHost->mesh, glm::vec3(-0.5f, -0.5f, -0.5f), glm::vec3(1, 1, 1), 0, 0);
|
||||
|
||||
Reference in new issue
Block a user