playMaker

Author Topic: smooth look at I need to stop it rotation  (Read 2265 times)

crem2002

  • Playmaker Newbie
  • *
  • Posts: 14
smooth look at I need to stop it rotation
« on: July 30, 2015, 08:14:54 AM »
Hi using smooth look at I need to stop its rotation. from above 128  and below -128  is this posable? i can get the angle but don't know how to clamp it so it will only  rotate in these angles any help would be good

I don’t wont it to rotate past the angle but to go the long way  not hitting the object eg building

or how would i edit the code to  make it turn left only or right only then i could compare the angle and have them in Different  states and turning Depended on angle




« Last Edit: July 30, 2015, 11:21:46 AM by crem2002 »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: smooth look at I need to stop it rotation
« Reply #1 on: July 31, 2015, 05:43:36 AM »
hi,

try float clamp :)

crem2002

  • Playmaker Newbie
  • *
  • Posts: 14
Re: smooth look at I need to stop it rotation
« Reply #2 on: July 31, 2015, 05:57:24 AM »
Tried float clamp but unsure how to uses it

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: smooth look at I need to stop it rotation
« Reply #3 on: July 31, 2015, 01:30:04 PM »
Hi,
oops i was a bit to quick to answer this :)

i found some custom actions here,
but they are for 2d but maybe u can use them

and i bumped a request for this here