Skip to content

Commit

Permalink
Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
PharaEthan committed Jan 10, 2024
2 parents 4c3f7dc + 5879522 commit 02f9a2a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ namespace Exodia {
float Mass;

RigidBody2DComponent(RigidBody2DComponent const &) = default;
RigidBody2DComponent(BodyType type = BodyType::Static, glm::vec2 velocity = glm::vec2(0.0f), float gravityScale = 1.0f, float mass = 1.0f) : Type(type), Velocity(velocity), GravityScale(gravityScale), Mass(mass){};
RigidBody2DComponent(BodyType type = BodyType::Static, glm::vec2 velocity = glm::vec2(0.0f),
float gravityScale = 1.0f, float mass = 1.0f)
: Type(type), Velocity(velocity), GravityScale(gravityScale), Mass(mass){};

virtual void Serialize(YAML::Emitter &out) {
out << YAML::Key << "RigidBody2DComponent";
Expand Down

0 comments on commit 02f9a2a

Please sign in to comment.