Initial editor commit
- Add Entity Tree View used to select entities to be modified - Add Entity View used to Add/Remove/Edit Components of the Entity - Add Asset View which lists all available assets
This commit is contained in:
@@ -10,6 +10,9 @@ namespace Copium
|
||||
public:
|
||||
void RunEntity(Entity entity, PlayerC& player, TransformC& transform) override
|
||||
{
|
||||
if (!ValidateEntity<TransformC>(player.camera))
|
||||
return;
|
||||
|
||||
TransformC& cameraTransform = player.camera.GetComponent<TransformC>();
|
||||
glm::vec2 wantedPos = transform.position + transform.size * 0.5f;
|
||||
cameraTransform.position -= (cameraTransform.position - wantedPos) * 0.10f;
|
||||
|
||||
Reference in New Issue
Block a user