How do I remove Gravity from Obirope at runtime? - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html) +--- Thread: How do I remove Gravity from Obirope at runtime? (/thread-2073.html) |
How do I remove Gravity from Obirope at runtime? - grayjamn - 27-02-2020 Following the grapplehook example and it automatically sets a gravity force of -9.8 on rope spawn, not finding any information on setting this value directly (ideally would like to remove it completely). Thanks in advance - RE: How do I remove Gravity from Obirope at runtime? - josemendez - 27-02-2020 (27-02-2020, 09:18 AM)grayjamn Wrote: Following the grapplehook example and it automatically sets a gravity force of -9.8 on rope spawn, not finding any information on setting this value directly (ideally would like to remove it completely). Hi, Gravity is a global solver parameter (see:http://obi.virtualmethodstudio.com/tutorials/obisolver.html) To change it at runtime: Code: solver.parameters.gravity = Vector3.zero; |