Exemplo n.º 1
0
        protected override void OnShapeSetMaterialProperty(Shape shape)
        {
            GeomData geomData = GetGeomDataByShape(shape);

            if (geomData != null)
            {
                dGeomID geomID = (geomData.transformID != dGeomID.Zero) ? geomData.transformID : geomData.geomID;
                Ode.SetShapeMaterialProperties(geomID, shape.Hardness, shape.Restitution, shape.DynamicFriction,
                                               shape.StaticFriction);
            }
        }