playMaker

Author Topic: Moving a Rigid Body to a Specific Location? [SOLVED]  (Read 117 times)

frogwise

  • Playmaker Newbie
  • *
  • Posts: 38
    • View Profile
Moving a Rigid Body to a Specific Location? [SOLVED]
« on: November 27, 2017, 09:37:07 PM »
I have a boat object on water and an RTS camera view. I would like to move the boat around the lake by clicking the destination. The boat should rotate to destination and move to destination smoothly.

I am having trouble doing this with regular Move To and Look At actions, as I feel they don't provide me the control I need in terms of getting to the destination at a speed that is based on how far away the click was.

I was thinking treating the boat as a Rigid Body would help, I just don't know how to get a rigid body to look at/move to a specific location.
« Last Edit: December 10, 2017, 11:55:10 AM by djaydino »

tcmeric

  • Hero Member
  • *****
  • Posts: 503
    • View Profile
Re: Moving a Rigid Body to a Specific Location?
« Reply #1 on: November 29, 2017, 12:55:12 AM »
Have you tried using navmesh? Navmesh uses acceleration and deceleration. As well as it faces towards the destination.

Here is a playmaker tutorial on point and click movement with navmesh: https://www.youtube.com/watch?v=iM_5Ma7hSC4&t=379s

frogwise

  • Playmaker Newbie
  • *
  • Posts: 38
    • View Profile
Re: Moving a Rigid Body to a Specific Location?
« Reply #2 on: December 09, 2017, 10:23:25 PM »
This looks like it might be exactly what I need! Thanks so much.