- Home /
Question by
Josie · Jan 04, 2014 at 10:16 PM ·
2djavascriptphysicsgravity
Can I access Physics2dSettings in Project Settings via script
Hello fellow Unity members,
My question is can I change the gravity in Edit > Project Settings > Physics2DSettings while using javascript.
Thank you
Comment
Best Answer
Answer by Josie · Jan 06, 2014 at 09:47 PM
Found it out. Here is an example for use with gravity
Physics2D.gravity = Vector2(0, 15);
Your answer
Follow this Question
Related Questions
Help with orbits 1 Answer
How to get animated sprite to adhere to gravity? 2 Answers
hit.rigidbody.useGravity problem? 1 Answer
Js: UnityEngine.Rigidbody is required, how to fix? 2 Answers
Need help on my script to calculate gravity for a mass 1 Answer