Пример #1
0
 public override BulletShape CreateGroundPlaneShape(uint pLocalId, float pheight, float pcollisionMargin)
 {
     StaticPlaneShape m_planeshape = new StaticPlaneShape(new IndexedVector3(0,0,1),(int)pheight );
     m_planeshape.SetMargin(pcollisionMargin);
     m_planeshape.SetUserPointer(pLocalId);
     return new BulletShapeXNA(m_planeshape, BSPhysicsShapeType.SHAPE_GROUNDPLANE);
 }
Пример #2
0
 internal static object CreateGroundPlaneShape2(uint pLocalId, float pheight, float pcollisionMargin)
 {
     StaticPlaneShape m_planeshape = new StaticPlaneShape(new IndexedVector3(0,0,1),(int)pheight );
     m_planeshape.SetMargin(pcollisionMargin);
     m_planeshape.SetUserPointer(pLocalId);
     return m_planeshape;
 }