Suggestion / Idea Cone Shaped Force - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: General (https://obi.virtualmethodstudio.com/forum/forum-5.html) +--- Thread: Suggestion / Idea Cone Shaped Force (/thread-1678.html) |
Cone Shaped Force - Wade Howard - 07-02-2020 A cone shaped force coming from an origin point would be quite useful for localized affects. This can be used to simulate both a hair dryer or a vacuum. The sphere and ambient forces don't seem like they'd do the job. (Or maybe something else already exists to do this??) Perhaps something like the following:
RE: Cone Shaped Force - josemendez - 10-02-2020 (07-02-2020, 08:41 PM)Wade Howard Wrote: A cone shaped force coming from an origin point would be quite useful for localized affects. Hi Wade, Sphere and ambient force zones are the basic ones included. You can write your own force zones by extending ObiExternalForce, and implementing its ApplyForcesToActor() and OnDrawGizmosSelected() methods. - ApplyForcesToActor: calculate the force you want to add to each particle, and write it in the solver.externalForces array. - OnDrawGizmosSelected: draw any gizmos you want for the force zone. There's lots of possible force zones (box shaped, vortex shaped, torus shaped, spline shaped, velocity field, etc) so we opted to include the basic ones and give users a mechanism to write their own in case of need. Also, remember that disabling the "radial" checkbox of the spherical force zone turns it into a linear force zone, with distance falloff, which behaves quite similar to a wide cone. We will consider including more built-in basic shapes in the future, but this is low-priority for us. |