17-12-2019, 04:03 PM
(17-12-2019, 02:25 PM)josemendez Wrote: AddForce is a function you can call on a softbody. So, just write a script that calls it:thanks very much, easy if you know how...unfortunately i dont know how....my scripting knowledge is based on using other peoples scripts and adapting what i can...i tried doing something with the code above, no luck. If such a script already exists, i would be grateful if i could just drag it on to the objects i want to move.
Code:using Obi;
public class Force
{
public ObiSoftbody softbody;
void FixedUpdate()
{
softbody.AddForce(<your force here>);
}
}