Skip to content

coolcatcoder/FlexSharpUnity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FlexSharpUnity

An implementation of Nvidia Flex in Unity! space, with fluid

Intro:

This library should allow easy developement in Unity using NvFlex in both dots and non-dots environments! (dots currently not done yet)

Current State:

Currently this library is early in development, so far this is what has been done:

  • fluids
  • solver parameters
  • basic shape collisions (cube and sphere, no mesh support currently)
  • infinite planes (occasionally causes crashes though)
  • basic rendering (can render as spheres to a unity particle system currently)

How To Use:

For the most basic example all you need is a flex container with planes setup for your particles to collide with, and then an emitter to emit fluid particles! I would highly recommend downloading the official NvFlex demo app and choosing the solver parameters based off of scenes from there (also check their manual, it is very helpful).

(if you need any help, feel free to ask anything on my discord server: https://discord.gg/ps9ckAkame)

Screenshots of Demo Scenes:

rainbow pond