Programming 2D Games

The official forum for "Programming 2D Games" the book by: Charles Kelly

It is currently Sat Dec 16, 2017 3:08 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Sprites orbit each other
PostPosted: Wed Jun 14, 2017 6:18 pm 
Offline

Joined: Wed Mar 22, 2017 10:33 pm
Posts: 14
Hi. I made a sprite that has a rectangle box collision type and a sprite that has circular. When the circle hits the box, the circlular sprite orbits the rectanglular sprite. Is this normal? Is it something with mass or some stat like that?


Top
 Profile  
Reply with quote  
PostPosted: Wed Jun 14, 2017 6:46 pm 
Offline
Site Admin
User avatar

Joined: Sat Jan 28, 2012 4:36 pm
Posts: 543
It is probably the mass and angle of impact. The calculations that support orbital physics are no different for circle or rectangle entities.

_________________
Professor Kelly


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group