CardioSim is a real-time electrocardiogram (ECG) simulator for Unity based on the
McSharry ECG model.
It generates physiologically realistic ECG waveforms that can be modified in real-time.
- Demo
- Discord
- Email: cokeefe919@gmail.com
- Download the appropriate
.unitypackagefile from HERE. - Drag the package into the Assets folder of your Unity project.
- Add the Heart and ECGVisualizer components to a GameObject.
- Select a rendering mode.
- Configure the renderer or material depending on the visualization backend you want to use.
- Real-time ECG waveform simulation based on the McSharry ECG model
- Controllable Heart-Rate Variability engine
- Adjustable heart rate and waveform parameters
- Switch between different pathological conditions
GPU waveform rendering using signed distance fields.
- Apply the material to any surface
- Automatically corrects waveform aspect ratio
- Customizable grid and background colors
- Generates a procedural mesh at runtime to display the waveform
- Implement your own ECG rendering backend by creating a renderer that implements the
IECGRendererinterface.
- Unity 6+ (6000.x and newer)
- URP supported
- Desktop and WebGL fully supported
CardioSim is released under The Unlicense. You may freely use, modify, and redistribute this software, including in commercial projects. Credit is not required, but greatly appreciated.