Skip to main content

Timeline for 2D moving objects in angle

Current License: CC BY-SA 4.0

8 events
when toggle format what by license comment
Jan 2, 2023 at 21:26 vote accept asqit
Oct 11, 2021 at 22:04 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Jun 13, 2021 at 22:04 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
May 14, 2021 at 21:17 history edited asqit CC BY-SA 4.0
added 5 characters in body
May 14, 2021 at 17:41 answer added bob timeline score: 1
May 14, 2021 at 17:38 comment added bob You're more likely to get an answer if you make you make it explicit what you're looking for. I had to read this question twice to see that info. It looks like you're close. Depends on how fancy you want to get. Assuming positive y is up and 90 degrees means go straight up and 0 degrees means go straight to the right, something as simple as y += speed * cos(angle), x += speed * sin(angle) should work, though you may prefer to handle that by composing translate and rotate commands (I'd have to think about the right way to do that).
May 14, 2021 at 12:28 history edited asqit CC BY-SA 4.0
edited title
May 14, 2021 at 8:51 history asked asqit CC BY-SA 4.0