public ICylinderShapeImp AddCylinderShape(float halfExtentsX, float halfExtentsY, float halfExtentsZ) { var btCylinderShape = new CylinderShape(halfExtentsX, halfExtentsY, halfExtentsZ); BtCollisionShapes.Add(btCylinderShape); var retval = new CylinderShapeImp(); retval.BtCylinderShape = btCylinderShape; btCylinderShape.UserObject = retval; return(retval); }
public ICylinderShapeImp AddCylinderShape(float3 halfExtents) { var btCylinderShape = new CylinderShape(Translater.Float3ToBtVector3(halfExtents)); BtCollisionShapes.Add(btCylinderShape); var retval = new CylinderShapeImp(); retval.BtCylinderShape = btCylinderShape; btCylinderShape.UserObject = retval; return(retval); }
public ICylinderShapeImp AddCylinderShape(float halfExtentsX, float halfExtentsY, float halfExtentsZ) { var btCylinderShape = new CylinderShape(halfExtentsX, halfExtentsY, halfExtentsZ); BtCollisionShapes.Add(btCylinderShape); var retval = new CylinderShapeImp(); retval.BtCylinderShape = btCylinderShape; btCylinderShape.UserObject = retval; return retval; }
public ICylinderShapeImp AddCylinderShape(float3 halfExtents) { var btCylinderShape = new CylinderShape(Translater.Float3ToBtVector3(halfExtents)); BtCollisionShapes.Add(btCylinderShape); var retval = new CylinderShapeImp(); retval.BtCylinderShape = btCylinderShape; btCylinderShape.UserObject = retval; return retval; }