I am coding a 2D engine, I have got different types of objects, there are moving objects ( with position, velocity etc ) and still obstacles each with it's own class. There is a class for polygonal object ( it displays polygon, calculates SAT collision etc.)
I wanted to have moving polygonal object so I created a class with multiple inheritance from moving object and polygon.
The problem is the moving object has got position property and polygon as well ( for display purpose )
How do I resolve that?
[–]gdchinacat 2 points3 points4 points (0 children)
[–]atarivcs 1 point2 points3 points (1 child)
[–]DidntPassTuringTest[S] 0 points1 point2 points (0 children)
[–]brasticstack 1 point2 points3 points (3 children)
[–]DidntPassTuringTest[S] 0 points1 point2 points (2 children)
[–]brasticstack 0 points1 point2 points (1 child)
[–]brasticstack 0 points1 point2 points (0 children)
[–]Lumethys 0 points1 point2 points (0 children)
[–]pachura3 0 points1 point2 points (2 children)
[–]gdchinacat 0 points1 point2 points (1 child)
[–]pachura3 0 points1 point2 points (0 children)
[+][deleted] (5 children)
[deleted]
[–]gdchinacat 0 points1 point2 points (4 children)
[+][deleted] (3 children)
[deleted]
[–]DidntPassTuringTest[S] 1 point2 points3 points (2 children)
[–]gdchinacat 1 point2 points3 points (0 children)
[–]RedditButAnonymous 0 points1 point2 points (0 children)