BEPUphysics.CollisionShapes.CompoundShapeEntry.CompoundShapeEntry C# (CSharp) Méthode

CompoundShapeEntry() public méthode

Constructs a new compound shape entry using the volume of the shape as a weight.
public CompoundShapeEntry ( EntityShape shape ) : System
shape EntityShape Shape to use.
Résultat System
        public CompoundShapeEntry(EntityShape shape)
        {
            LocalTransform = RigidTransform.Identity;
            Shape = shape;
            Weight = shape.ComputeVolume();
        }
    }

Same methods

CompoundShapeEntry::CompoundShapeEntry ( EntityShape shape, Quaternion orientation ) : System
CompoundShapeEntry::CompoundShapeEntry ( EntityShape shape, Quaternion orientation, float weight ) : System
CompoundShapeEntry::CompoundShapeEntry ( EntityShape shape, RigidTransform localTransform ) : System
CompoundShapeEntry::CompoundShapeEntry ( EntityShape shape, RigidTransform localTransform, float weight ) : System
CompoundShapeEntry::CompoundShapeEntry ( EntityShape shape, System.Vector3 position ) : System
CompoundShapeEntry::CompoundShapeEntry ( EntityShape shape, System.Vector3 position, float weight ) : System
CompoundShapeEntry::CompoundShapeEntry ( EntityShape shape, float weight ) : System
CompoundShapeEntry