K
K
Koi_kombat2016-09-11 02:20:45
Android
Koi_kombat, 2016-09-11 02:20:45

How to implement twist in android application?

Tell me how to implement the torsion of white balls? In each version, after stopping based on a random ball option, display a Pop-up notification

tyts
274014f216e1479690e6e6b8559e30cc.jpg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Perelygin, 2016-09-12
@Koi_kombat

IMHO GLSurfaceView - work for an hour ... well, or CustomView + canvas, separately make a controller that will calculate the position, and in onDraw take it and draw a picture of a circle in the required position.

P
Peter, 2016-09-11
@petermzg

y = R*sin(angle)
x = R*cos(angle)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question