2
\$\begingroup\$

I am pretty new to game development. I have started using unity3d.

I have created simple games for which I have used plane (3d gameObject). Now, I want to move a step forward I want to create a forest with mountain and trees. So, I went through few tutorials and concluded terrain (3d Object) will be best fit.

Issue: My player falls down from the terrain due to gravity and if i disable gravity then my player flies up in y axes when moved over mountains. What is the way i can create terrain with gravity and so that my player doesn't fall from the terrain.

Can anyone throw light on how do overcome above mentioned issue.

\$\endgroup\$
  • \$\begingroup\$ Did u apply Mesh Collider on Terrain...? \$\endgroup\$ – Shraddha Patel Dec 2 '15 at 10:11
  • \$\begingroup\$ yes, Box collider is applied on the terrain by default. \$\endgroup\$ – A.J Dec 2 '15 at 10:12
  • \$\begingroup\$ does your player have a collider and rigid body on it as well...? \$\endgroup\$ – Shraddha Patel Dec 2 '15 at 10:23
  • \$\begingroup\$ Yes, I have made player a rigidBody. \$\endgroup\$ – A.J Dec 2 '15 at 10:24
  • \$\begingroup\$ And what about any collider? \$\endgroup\$ – Shraddha Patel Dec 2 '15 at 10:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.