Obi Official Forum
Help Locking Y positions instead of Z in 2D mode - 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: Help Locking Y positions instead of Z in 2D mode (/thread-3731.html)



Locking Y positions instead of Z in 2D mode - sablecanyon - 17-01-2023

Hi, 

I want to use 2d mode but instead of XY plane I need to simulate in XZ plane, or locking Y positions in 3D mode can also work.
How can I achieve these effects in an effective way? 

Thanks.


RE: Locking Y positions instead of Z in 2D mode - josemendez - 17-01-2023

(17-01-2023, 04:21 PM)sablecanyon Wrote: Hi, 

I want to use 2d mode but instead of XY plane I need to simulate in XZ plane, or locking Y positions in 3D mode can also work.
How can I achieve these effects in an effective way? 

Thanks.

Hi,

2D mode is designed to work together with Unity's 2D mode, which uses the XY plane. If you want to modify or constrain particle positions/velocities in an arbitrary way (XZ or any other plane), you can use the particles API: http://obi.virtualmethodstudio.com/manual/6.3/scriptingparticles.html

kind regards,