summaryrefslogtreecommitdiff
path: root/legacy/ephysics/src/lib/ephysics_world.cpp
diff options
context:
space:
mode:
authorLeandro Dorileo <dorileo@profusion.mobi>2012-11-29 18:54:36 +0000
committerLeandro Dorileo <dorileo@profusion.mobi>2012-11-29 18:54:36 +0000
commit40e3df112103ded17b2249ccf01e588c713a14bf (patch)
tree985d4ab9469ab460f3aabad63fb17af1f5afe2fd /legacy/ephysics/src/lib/ephysics_world.cpp
parent9e76f59766a386613dec6512cc7a2469f1a5dc41 (diff)
EPhysics: constraint removal
Delete the constraints a body belongs to on body removal and avoid bullet to segfault. --This line, and those below, will be ignored-- SVN revision: 79850
Diffstat (limited to '')
-rw-r--r--legacy/ephysics/src/lib/ephysics_world.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/legacy/ephysics/src/lib/ephysics_world.cpp b/legacy/ephysics/src/lib/ephysics_world.cpp
index f1004bb3c8..2aef765293 100644
--- a/legacy/ephysics/src/lib/ephysics_world.cpp
+++ b/legacy/ephysics/src/lib/ephysics_world.cpp
@@ -499,6 +499,12 @@ ephysics_world_soft_body_add(EPhysics_World *world, EPhysics_Body *body)
499 return EINA_TRUE; 499 return EINA_TRUE;
500} 500}
501 501
502Eina_List *
503ephysics_world_constraints_get(EPhysics_World *world)
504{
505 return world->constraints;
506}
507
502void 508void
503ephysics_world_constraint_add(EPhysics_World *world, EPhysics_Constraint *constraint, btGeneric6DofConstraint *bt_constraint) 509ephysics_world_constraint_add(EPhysics_World *world, EPhysics_Constraint *constraint, btGeneric6DofConstraint *bt_constraint)
504{ 510{