Hi all, Hope everyone had a great holiday season
I have a sprite object that has a collision box that changes depending on it's frame of animation. (It appears to rotate 360° at a 3D angle even though the sprite stays static, therefore it's collision box changes dimensions every frame)
There is a base object that this animated sprite is pinned to. It's a rectangular physics object. That's our main object, and this car sprite simply changes animation frames to match the angle that this base physics object is moving in (for example if the physics object is moving at 90° then the animation frame of this sprite is set to 18 etc)
I thought I was being real clever with this but perhaps not. I guess this is what you get when you try to fake 3D? Obviously the base physics objects rectangle would have to have slightly different dimensions depending on the angle we're moving in order to match it's accompanying animations.
What I need to do is change the size of the base physics object so that it always matches the size of the animated sprite's collision zone. Would anyone have any idea how I could do this, that's if it's possible at all?
Apologies if this isn't very clear. I am aware that this is a bit of an unconventional apporach to faux 3D.