Want to set differnt gravity for differnt place in one project.
I am able to change the value of gravity from:: Edit--project settings--physics. but it is for whole objects of the project, i want to set different gravity for different objects.
You haven't specified which system you're using, 2d or 3d. Either way, this answer should help you: http://answers.unity3d.com/questions/34738/can-i-make-gravity-work-the-other-way-round-for-on.html
I should add that gravity is a world constant, and is not variable between objects or regions. You'd want to have some sort of volume that affected objects within it.
Answer by G4merSylver · Dec 14, 2015 at 06:43 PM
As iwaldrop said, Gravity is global. But this doenst exactly means that you cant create regional gravity. I would just create an OnTriggerStay and change the gravity by physics.gravity, when leaving the trigger just reset it.
This assumes that you'd want all objects in the world affected when the triggering object moves between regions, but the OP asks about different gravity for different objects.
Your answer
Follow this Question
Related Questions
How to make a player instantly reach to a change in gravity? 2 Answers
Floats are acting really weird 0 Answers
How to not jump while in mid-air when the gravity is flipped 2 Answers
Character hangs on the end of colliders? 0 Answers
Bending gravity around inside of spherical terrain? (like Game of Thrones opening credits) 0 Answers