After Width: | Height: | Size: 976 KiB |
After Width: | Height: | Size: 816 KiB |
After Width: | Height: | Size: 282 KiB |
After Width: | Height: | Size: 405 KiB |
After Width: | Height: | Size: 440 KiB |
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 499 KiB |
After Width: | Height: | Size: 425 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 269 KiB |
After Width: | Height: | Size: 120 KiB |
After Width: | Height: | Size: 42 KiB |
After Width: | Height: | Size: 530 KiB |
After Width: | Height: | Size: 514 KiB |
After Width: | Height: | Size: 51 KiB |
After Width: | Height: | Size: 442 KiB |
After Width: | Height: | Size: 441 KiB |
After Width: | Height: | Size: 88 KiB |
After Width: | Height: | Size: 425 KiB |
After Width: | Height: | Size: 474 KiB |
After Width: | Height: | Size: 40 KiB |
|
@ -1,4 +1,4 @@
|
|||
#include "DemoWorld.h"
|
||||
#include "DemoWorld.h"
|
||||
#include "Particle.h"
|
||||
|
||||
DemoWorld::DemoWorld()
|
||||
|
@ -34,6 +34,10 @@ DemoWorld::DemoWorld()
|
|||
particle3->setSpeed(glm::vec3(0, 1, 0));
|
||||
particle3->setPosition({ 6, 7, 0 });
|
||||
|
||||
auto shoot = std::make_shared<Actor>("Models\\shootgun\\scene.gltf");
|
||||
shoot->setPosition({ 5,0,-1 });
|
||||
shoot->setScale(glm::vec3{ 50 });
|
||||
|
||||
physicsManager.addSpring(particle, particle2, 2, 10, 0);
|
||||
physicsManager.addSpring(particle2, particle3, 2, 10, 0);
|
||||
|
||||
|
@ -44,4 +48,6 @@ DemoWorld::DemoWorld()
|
|||
addActor(particle);
|
||||
addActor(particle2);
|
||||
addActor(particle3);
|
||||
addActor(shoot);
|
||||
|
||||
}
|
||||
|
|