Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shoot a bullet to a touched position #2

Merged
merged 3 commits into from
Mar 10, 2017

Conversation

mmorihiro
Copy link
Owner

#1

@mmorihiro mmorihiro added this to the v0.1 milestone Mar 9, 2017
@mmorihiro mmorihiro self-assigned this Mar 9, 2017
val xSide = (clickedX - Values.centerX).toDouble()
val direction = Math.atan2(ySide, xSide)
val vx = Math.cos(direction).toFloat()
val vy = Math.sin(direction).toFloat()
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

この部分は#3 でリファクタリングするので、今回はこのままにしました。

Copy link
Collaborator

@forestone23 forestone23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@forestone23 forestone23 merged commit a1dd7b9 into master Mar 10, 2017
@forestone23 forestone23 deleted the 1_shoot_a_bullet_to_a_touched_position branch March 10, 2017 08:55
@mmorihiro
Copy link
Owner Author

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants