Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed Sep 28, 2015 at 05:17 PM by getyour411 for the following reason:

Too subjective and argumentative

avatar image
0
Question by mscottveach · Feb 02, 2014 at 12:56 PM · terrainnpcwalkinguneven

NPCs following an uneven floor...

I have programming experience but am brand new to Unity. Teaching myself via trial-and-error.

In a scene, I have a model with uneven heights that is serving as a floor and an NPC model that has no animation.

I'm trying to figure out how to move the NPC (sans animation) around the floor while raising and lowering the NPC to match the height of the floor at the spot where he's standing.

There seem to be many different ways I could approach this. I could move him with transform.Translate or I could put a rigidbody on him and use forces. I could keep him on the ground with gravity. I think CharacterControlelrs have some special properties that affect this. And so on.

I can figure out the details if I just knew which (in the broadest sense) approach is the most standard for this kind of thing? Should I be moving NPC's with rigidbody forces? Or by manually translating their transforms? Should I be using raycasting and terrain meshes to figure out when they need to "step up" or some other method?

Can anyone give me a hint? As I said, no need for details, just point me toward the right keywords.

Also, I haven't looked into animation at all, but it occurs to me that any tutorial that teaches me to make a walking animation might also cover how to handle the actual movement across uneven terrain. Should I perhaps jump into learning Meccanim and will find these issues are covered there?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

  • Sort: 

Follow this Question

Answers Answers and Comments

18 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

3rd-person RPG movment on uneven terrain? 1 Answer

How To Make An NPC Move When You Look At It 2 Answers

what is the easiest way to do a moving car on uneven terrain 1 Answer

when i collide with npc he keeps walking. 1 Answer

Enemy walking through walls/terrain 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges