- #1
DigitalPenman
- 4
- 0
Thank you in advance for your help!
The title pretty much says it all. I'm looking to write a 2D physics sim in which various objects can bounce off solid surfaces (without gravity). The objects are rotating and translating at a constant rate. We are dealing only with x and y - not z.
Let's take a rectangular block with these data:
mass = 'm'
width = 'w'
height = 'h'
center = 'cx, cy' (simply w/2, h/2)
rot = 'θ' (around the origin cx,cy in degrees)
slope = 'sx', 'sy' (speed and direction of travel)
say one corner of this rectangle is x0, y0 just before the point of impact. What formula could describe this scenario where x1, y1 is the same corner during impact?
i.e. x1 = ...
y1 = ...
Please feel free to fill in any missing data that I may need.
The title pretty much says it all. I'm looking to write a 2D physics sim in which various objects can bounce off solid surfaces (without gravity). The objects are rotating and translating at a constant rate. We are dealing only with x and y - not z.
Let's take a rectangular block with these data:
mass = 'm'
width = 'w'
height = 'h'
center = 'cx, cy' (simply w/2, h/2)
rot = 'θ' (around the origin cx,cy in degrees)
slope = 'sx', 'sy' (speed and direction of travel)
say one corner of this rectangle is x0, y0 just before the point of impact. What formula could describe this scenario where x1, y1 is the same corner during impact?
i.e. x1 = ...
y1 = ...
Please feel free to fill in any missing data that I may need.