- Home /
Question by
jacksoncube7991 · Mar 19, 2021 at 08:53 PM ·
transform.positionvector3.up
How to use vector3.up and transform.position
How do I make a flood script with Vector3.up and transform.position?
flood-script-pls-help.jpg
(18.8 kB)
Comment
Please elaborate. What is a "flood" script? What do you want it to do?
Answer by Llama_w_2Ls · Mar 20, 2021 at 08:54 AM
If what you mean by 'flood script', is an object (like a water source) that rises, you can try this piece of code:
transform.position += Vector3.up * force * Time.deltaTime