protected override Entity CreateEntity() { CompoundBody cb = new CompoundBody( _shapes.Select(bse => BoxShapeDescription.Scale(bse, Transform.Scale).GetShapeEntry()).ToList(), Mass); EntityCenter = -cb.Position; return(cb); }
public static BoxShapeDescription Scale(BoxShapeDescription bse, Vector3 scale) { return(new BoxShapeDescription(bse.Dimensions * scale, bse.Position * scale, bse.Orientation)); }