playMaker

Author Topic: Mecanim Look At  (Read 2939 times)

gozda

  • Junior Playmaker
  • **
  • Posts: 88
    • View Profile
Mecanim Look At
« on: November 18, 2014, 03:43:14 AM »
How to make a simple look at using mecanim? I want make a torso of character looking at target.
I didnt find any tutorial how to..

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2488
  • Yup.
    • View Profile
    • Cleverous
Re: Mecanim Look At
« Reply #1 on: November 18, 2014, 05:11:54 AM »
https://hutonggames.fogbugz.com/default.asp?W1031

Check out the Set Animator Look At action.

gozda

  • Junior Playmaker
  • **
  • Posts: 88
    • View Profile
Re: Mecanim Look At
« Reply #2 on: November 18, 2014, 05:45:15 AM »
I have seen already PlayMakerAnimatorDemos and Mecanim Example scene. Its great, NavMest and follow action are wery usefull. But still i dont know what i need to make look at. Create another layer in Mecanim? set fsm on bone which i want to look at? and how to setup state in mecanim, which parameters do i need? Its wery important for me, becouse of this, my project stop and dont know how to solve this problem. My next step in project is balancing weapons, this look at i need to aiming enemy.

gozda

  • Junior Playmaker
  • **
  • Posts: 88
    • View Profile
Re: Mecanim Look At
« Reply #3 on: November 20, 2014, 07:17:31 AM »
Refreshing

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14471
  • Official Playmaker Support
    • View Profile
Re: Mecanim Look At
« Reply #4 on: November 20, 2014, 11:59:08 PM »
Hi,

 it's all in the "Inverse Kinematics PlayMaker" scene, you can switch aiming , and as you move sphere your character will look at it, same with arms and legs.

 Bye,

 Jean

gozda

  • Junior Playmaker
  • **
  • Posts: 88
    • View Profile
Re: Mecanim Look At
« Reply #5 on: November 22, 2014, 12:02:31 PM »
In this scene, look at and De/Activade IK dont work.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2488
  • Yup.
    • View Profile
    • Cleverous
Re: Mecanim Look At
« Reply #6 on: November 22, 2014, 10:29:51 PM »
IK is a unity pro feature.

gozda

  • Junior Playmaker
  • **
  • Posts: 88
    • View Profile
Re: Mecanim Look At
« Reply #7 on: November 23, 2014, 12:19:33 AM »
So, its possible make look at without unity Pro? If not, then there is no point to continue my game..

escpodgames

  • Hero Member
  • *****
  • Posts: 686
    • View Profile
    • Assets
Re: Mecanim Look At
« Reply #8 on: November 23, 2014, 12:46:03 AM »

gozda

  • Junior Playmaker
  • **
  • Posts: 88
    • View Profile
Re: Mecanim Look At
« Reply #9 on: November 23, 2014, 01:01:31 AM »
Compatible with Playmaker? Thet dont say anything about this..

Ok i find answer, this looks awesome and easy.
« Last Edit: November 23, 2014, 01:12:49 AM by gozda »

escpodgames

  • Hero Member
  • *****
  • Posts: 686
    • View Profile
    • Assets
Re: Mecanim Look At
« Reply #10 on: November 23, 2014, 01:43:00 AM »
It was just an idea, rather than fork out for pro/cancel you game :P

Playmaker supported!

gozda

  • Junior Playmaker
  • **
  • Posts: 88
    • View Profile
Re: Mecanim Look At
« Reply #11 on: November 23, 2014, 03:45:15 AM »
This is good Idea. Thanks For help:)
I won't close this Topic as Solved. Maybe someone find other solution for standalone users.

cmonroy

  • Playmaker Newbie
  • *
  • Posts: 34
    • View Profile
Re: Mecanim Look At
« Reply #12 on: November 24, 2014, 02:42:29 PM »
Besides FinalIK is indeed compatible with Playmaker... The author has provided some basic funcionality to be called within your own FSM's...

It worked for me, at least.

Check the demo here:
https://dl.dropboxusercontent.com/u/229550374/Amanda/Web.html
As usual, use WASD to move, LeftShift to run and Tab to switch viewports. Done with Playmaker and Final-IK.
« Last Edit: November 25, 2014, 08:32:31 AM by cmonroy »

gozda

  • Junior Playmaker
  • **
  • Posts: 88
    • View Profile
Re: Mecanim Look At
« Reply #13 on: November 25, 2014, 01:26:39 PM »
Great, so its really work :]