playMaker

Author Topic: 3D Point and Click: Moving on Hills etc  (Read 824 times)

Sagehorn

  • Playmaker Newbie
  • *
  • Posts: 2
    • View Profile
3D Point and Click: Moving on Hills etc
« on: June 24, 2015, 09:22:38 AM »
Hi there

"Simple" Question: What is the best way to let characters walk on hills without running through the hill or hovering on top..

I'm using iTween Actions but that - literally - seems to be the wrong way.. 

terri

  • Sr. Member
  • ****
  • Posts: 373
    • View Profile
    • terrivellmann.tumblr.com
Re: 3D Point and Click: Moving on Hills etc
« Reply #1 on: June 24, 2015, 10:17:48 AM »
Best way is probably using navmesh and setting a destination for the character.

I'm assuming you're just starting out and pathfinding might seem a bit advanced right now, but you'll probably have to deal with it sooner or later unless your character will move without ever having to find its way around things.

edit:
Without pathfinding you could use Move Towards. In both cases the character needs a Character Controller, if I'm not mistaken.

Sagehorn

  • Playmaker Newbie
  • *
  • Posts: 2
    • View Profile
Re: 3D Point and Click: Moving on Hills etc
« Reply #2 on: June 24, 2015, 02:07:17 PM »
Thx for your reply.

I just forgot to create a nav mesh agent for the player and baking it all. Now it works with "i tween move to"

terri

  • Sr. Member
  • ****
  • Posts: 373
    • View Profile
    • terrivellmann.tumblr.com
Re: 3D Point and Click: Moving on Hills etc
« Reply #3 on: June 25, 2015, 01:23:50 PM »
really? huh didn't think itween had anything to do with navmesh