BGE patch #22623 applied: new bound type: Capsule.
This commit is contained in:
@@ -184,6 +184,14 @@ void KX_ConvertBulletObject( class KX_GameObject* gameobj,
|
||||
bm = shapeInfo->CreateBulletShape(ci.m_margin);
|
||||
break;
|
||||
}
|
||||
case KX_BOUNDCAPSULE:
|
||||
{
|
||||
shapeInfo->m_radius = objprop->m_boundobject.c.m_radius;
|
||||
shapeInfo->m_height = objprop->m_boundobject.c.m_height;
|
||||
shapeInfo->m_shapeType = PHY_SHAPE_CAPSULE;
|
||||
bm = shapeInfo->CreateBulletShape(ci.m_margin);
|
||||
break;
|
||||
}
|
||||
case KX_BOUNDMESH:
|
||||
{
|
||||
// mesh shapes can be shared, check first if we already have a shape on that mesh
|
||||
@@ -553,4 +561,4 @@ bool KX_ReInstanceBulletShapeFromMesh(KX_GameObject *gameobj, KX_GameObject *fro
|
||||
spc->ReplaceControllerShape(bm);
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
Reference in New Issue
Block a user