playMaker

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

Sagehorn

  • Playmaker Newbie
  • *
  • Posts: 2
3D Point and Click: Moving on Hills etc
« on: June 24, 2015, 12:22:38 PM »
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: 386
    • terrivellmann.tumblr.com
Re: 3D Point and Click: Moving on Hills etc
« Reply #1 on: June 24, 2015, 01:17:48 PM »
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
Re: 3D Point and Click: Moving on Hills etc
« Reply #2 on: June 24, 2015, 05: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: 386
    • terrivellmann.tumblr.com
Re: 3D Point and Click: Moving on Hills etc
« Reply #3 on: June 25, 2015, 04:23:50 PM »
really? huh didn't think itween had anything to do with navmesh