playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Download the
Ecosystem Browser
to find new actions, samples. etc.
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
Rotation exact 90 degree problem.[SOLVED]
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Rotation exact 90 degree problem.[SOLVED] (Read 3693 times)
neowings
Playmaker Newbie
Posts: 25
Rotation exact 90 degree problem.[SOLVED]
«
on:
April 14, 2013, 09:04:00 AM »
Hi,
I'm making AI right now, The Ai is the Robot Guard which is standing and turn 90 or -90 degree to search player. I'm simply using 'Rotate' action with 'Every Frame' option.
To turn 90 or -90 degree, I set 3 degrees per frame because 1 sec is 30 frames. However, it doesn't work well, every time current angle is different.
Is my math wrong?
I searched related problem of get 90 degrees rotation. But my situation is little bit different. The AI has to rotate 90 or -90 degrees and Stop in every time for detecting player. setting with 'Animation Float' and 'Set Rotation' actions are not for my Ai.
http://hutonggames.com/playmakerforum/index.php?topic=2173.msg9572#msg9572
Thank you.
«
Last Edit: April 15, 2013, 09:10:25 AM by neowings
»
Logged
Lane
Administrator
Hero Member
Posts: 2511
Mender of the past
Re: Rotation exact 90 degree problem.
«
Reply #1 on:
April 14, 2013, 09:05:59 AM »
use iTween Rotate Add instead.
Logged
Products by Cleverous
||
Vault Core
: Database
||
Vault Inventory
: Multiplayer Inventory
||
Vault Attributes
: Character Stats
||
That Hurt!
: Dmg Floaties
||
Quinn
: 3D
neowings
Playmaker Newbie
Posts: 25
Re: Rotation exact 90 degree problem.
«
Reply #2 on:
April 14, 2013, 09:35:29 AM »
Thanks for reply my question, and I added action "iTween Rotate Add".
But rotating exactly 90 degree is still not working. Probably math mistake of rotate degree per frame within 1 second.
Logged
neowings
Playmaker Newbie
Posts: 25
Re: Rotation exact 90 degree problem.
«
Reply #3 on:
April 15, 2013, 09:09:38 AM »
Ah ha! I should Turn "Stop on Exit" Check Box off.
Now it works 100% well.
Logged
Alex Chouls
Administrator
Hero Member
Posts: 3987
Official Playmaker Support
Re: Rotation exact 90 degree problem.[SOLVED]
«
Reply #4 on:
April 15, 2013, 10:20:25 AM »
Hmmm, sounds like a bug. Maybe stop on exit skips setting the rotation in the last frame... I'll look into it...
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
Rotation exact 90 degree problem.[SOLVED]