- Home /
Question by
rtcheteden · Dec 16, 2021 at 03:39 PM ·
particle system
attempting to multiply particle system gravity modifier by start speed
public class adaptiveSplash : MonoBehaviour
{
public Rigidbody r;
public ParticleSystem p;
void Update()
{
var main = p.main;
main.startSpeed = r.velocity.y;
main.gravityModifier = main.startSpeed *1.2f;
}
}
snippet above is the attempt, trying to change particle system splash size by player's vertical velocity by changing start speed, gravity modifier and duration, attempting to multiply start speed to change gravity mod as a test, any ideas?
Comment
Your answer
Follow this Question
Related Questions
Why particle system not show on my UI canvas? HELPPP 0 Answers
how fix kinematic object fix on camera after jump? 0 Answers
How do you make particles move in sharp lines, similar to what's shown in this picture? 0 Answers
Cannot turn ParticleSystem on/off, and it keeps randomly disappearing. 1 Answer