Search Unity

  1. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  2. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  3. Participate with students all over the world and build projects to teach people. Join now!
    Dismiss Notice
  4. Build games and experiences that can load instantly and without install. Explore the Project Tiny Preview today!
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  6. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Edge detection and gravity always alinged to the surface.

Discussion in 'Physics' started by MarkusGod, Feb 8, 2018.

  1. MarkusGod

    MarkusGod

    Joined:
    Jan 10, 2017
    Posts:
    163
    I am making a character controller, and its gravity always goes downwards character rotation (transform.up*-1), and character it keeped aligned to the surface by raycasting down and getting raycaster normal. And I'm having hard times how to detect >90 edges. Maybe somebody already implements something like this and my way is completely wrong, or somebody can give some advice how to solve hard edges problem?
    char_control.png
     
  2. graworg

    graworg

    Joined:
    Apr 9, 2014
    Posts:
    3