예제 #1
0
        protected override Entity CreateEntity()
        {
            CompoundBody cb = new CompoundBody(
                _shapes.Select(bse => BoxShapeDescription.Scale(bse, Transform.Scale).GetShapeEntry()).ToList(), Mass);

            EntityCenter = -cb.Position;
            return(cb);
        }
예제 #2
0
 public static BoxShapeDescription Scale(BoxShapeDescription bse, Vector3 scale)
 {
     return(new BoxShapeDescription(bse.Dimensions * scale, bse.Position * scale, bse.Orientation));
 }