예제 #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(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);
        }
예제 #3
0
 public BasicBody WithEMProps(IElectroMag newEMProps) => new BasicBody(Dynamics, newEMProps, Material, CollisionShape, Shape, BoundVolume);
예제 #4
0
 public BasicBody WithEMProps(IElectroMag newEMProps) => new BasicBody(Dynamics, newEMProps, Material, CollisionShape, Shape, BoundVolume);