Skip to content

Commit

Permalink
Fixed Joint2D build
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardodoria committed Sep 1, 2023
1 parent 3f13cf8 commit f6bf79b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion engine/core/object/physics/Joint2D.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace Supernova{
void setMotorJoint(Entity bodyA, Entity bodyB);
void setRopeJoint(Entity bodyA, Entity bodyB, Vector2 worldAnchorOnBodyA, Vector2 worldAnchorOnBodyB);


Joint2DType getType();
};
}

Expand Down
14 changes: 0 additions & 14 deletions engine/core/subsystem/PhysicsSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -502,21 +502,7 @@ void PhysicsSystem::update(double dt){

body.newBody = false;
}
/*
for (int i = 0; i < joints2d->size(); i++){
Joint2DComponent& joint = joints2d->getComponentFromIndex(i);
Entity entity = joints2d->getEntity(i);
Signature signature = scene->getSignature(entity);
if (joint.needUpdate){
destroyJoint2D(joint);

joint.needUpdate = false;
}
loadJoint2D(joint);
}
*/
if (bodies2d->size() > 0){
int32 velocityIterations = 6;
int32 positionIterations = 2;
Expand Down

0 comments on commit f6bf79b

Please sign in to comment.