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:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
Bug Reporting
»
PlayMaker Bug Reporting
(Moderator:
600
) »
Vector2SnapToAngle script broken
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Vector2SnapToAngle script broken (Read 1350 times)
rezendes
Playmaker Newbie
Posts: 1
Vector2SnapToAngle script broken
«
on:
May 14, 2023, 02:14:33 PM »
I found a couple mistakes in the "Vector2SnapToAngle" script, the line
"var currentAngle = Mathf.Atan2(v2.y, v2.y);"
should instead be:
"var currentAngle = Mathf.Rad2Deg * Mathf.Atan2(v2.y, v2.x);"
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
Bug Reporting
»
PlayMaker Bug Reporting
(Moderator:
600
) »
Vector2SnapToAngle script broken