Пример #1
0
        public BasicBody(IDynamicBody dynamics, IElectroMag eMProps, BasicMaterial material, IEdgeIntersector collisionShape, IVolume shape, IOverlapable boundVolume)
        {
            Dynamics = dynamics;
            EMProps = eMProps;
            Material = material;
            CollisionShape = collisionShape;
            Shape = shape;
            BoundVolume = boundVolume;

            Dynamics.FrameFinished += (sender, e) => FrameFinished?.Invoke(sender, e);
        }
Пример #2
0
 public BasicBody WithMaterial(BasicMaterial newMaterial) => new BasicBody(Dynamics, EMProps, newMaterial, CollisionShape, Shape, BoundVolume);