File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ b2BodyType getBodyTypeToB2(BodyType type){
20
20
return b2_dynamicBody;
21
21
}
22
22
23
- return b2_staticBody ;
23
+ return b2_dynamicBody ;
24
24
}
25
25
26
26
BodyType getB2ToBodyType (b2BodyType type){
@@ -32,7 +32,7 @@ BodyType getB2ToBodyType(b2BodyType type){
32
32
return BodyType::DYNAMIC;
33
33
}
34
34
35
- return BodyType::STATIC ;
35
+ return BodyType::DYNAMIC ;
36
36
}
37
37
38
38
Vector2 getB2ToVector2 (b2Vec2 vec2){
Original file line number Diff line number Diff line change @@ -735,6 +735,7 @@ bool PhysicsSystem::loadBody2D(Entity entity){
735
735
bodyDef.userData .pointer = entity;
736
736
737
737
body.body = world2D->CreateBody (&bodyDef);
738
+ body.body ->SetType (b2_dynamicBody);
738
739
body.newBody = true ;
739
740
740
741
return true ;
You can’t perform that action at this time.
0 commit comments