Exemplo n.º 1
0
    // Update is called once per frame
    void Update()
    {
        transform.position = particle.Update(Time.deltaTime);

        foreach (HooksLaw.Particle part in spring.m_Particle)
        {
            spring.CalculateForce();
        }
    }
Exemplo n.º 2
0
 public void FixedUpdate()
 {
     transform.position = particle.Update(Time.fixedDeltaTime);
 }