21-10-2017, 03:08 PM
(This post was last modified: 21-10-2017, 03:11 PM by josemendez.)
(21-10-2017, 02:51 PM)alex_ilin Wrote: Hi guys,
I want to buy your plugin, to port existent fluid-based game to Unity.
I have several questions:
- can I apply a force to a particle (for ex. i will have a sensor collider and all particles inside it should be accelerated by the force)
- is it possible to implement a friction like behaviour when particles slows down when touching some collider
- is it possible to directly change position/velocity of the particle (for ex. to implement teleport functionality)
- is it possible to add my own collisions solver with complex geometry object (i think it will be faster than your mesh collider), it will be an addition to your current collisions solver
- do you use your own rigid bodies physics or you use Unity rigid bodies?
Hi Alex!
- Yes you can apply forces to particles, and you can detect when a particle touches a collider / trigger.
- Friction/stickiness are supported by default. You can specify collision materials, which determine the behavior of particles upon collision. No need to roll your own.
- Yes, you can modify all particle properties directly.
- Nothing stops you from doing so since you can get/set particle positions and velocities, however our collision implementation is highly optimized (multithreaded c++ w/SSE intrinsics). Rolling your own might not be worth the effort (specially if you plan on doing so in C#), but you can still do it if you want to. In the next update we're going to include ADFs (adaptive distance fields), which achieve extremely fast and robust contact generation against arbitrary concave/convex meshes.
- We use Unity's standard rigidbodies. There's a thin wrapper component on top of them that applies impulses to/from particles, but that's all.
Some interesting reading material:
http://obi.virtualmethodstudio.com/tutor...sions.html
http://obi.virtualmethodstudio.com/tutor...sions.html
http://obi.virtualmethodstudio.com/tutor...icles.html
cheers,