Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

Commit

Permalink
Update SE_BasicPhysics Demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis Huvier committed Sep 11, 2022
1 parent 21d85d8 commit 887fbe1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Demos/SE_BasicPhysics/MyScene.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using SharpEngine.Managers;
using SharpEngine.Utils.Control;
using SharpEngine.Utils.Math;
using SharpEngine.Utils.Physic;
using SharpEngine.Utils.Physic.Joints;
using tainicom.Aether.Physics2D.Dynamics;

Expand Down Expand Up @@ -48,7 +49,7 @@ public MyScene()
var ent5 = new Entity();
ent5.AddComponent(new TransformComponent(new Vec2(620, 100)));
ent5.AddComponent(new SpriteComponent("test"));
ent5.AddComponent(new PhysicsComponent()).AddRectangleCollision(new Vec2(44), restitution: 1f);
ent5.AddComponent(new PhysicsComponent()).AddRectangleCollision(new Vec2(44), restitution: 1f, tag: FixtureTag.IgnoreCollisions);
AddEntity(ent5);

var ent6 = new Entity();
Expand Down

0 comments on commit 887fbe1

Please sign in to comment.