示例#1
0
        protected override void OnShapeSetContactGroup(Shape shape)
        {
            base.OnShapeSetContactGroup(shape);

            GeomData geomData = GetGeomDataByShape(shape);

            if (geomData != null)
            {
                dGeomID geomID = (geomData.transformID != dGeomID.Zero) ?
                                 geomData.transformID : geomData.geomID;
                Ode.SetShapeContractGroup(geomID, shape.ContactGroup);
            }
        }