defold / editor2-issues

DEPRECATED
44 stars 4 forks source link

Collision Object does not scale when its game object container is scaled #1380

Open spongepaddy opened 6 years ago

spongepaddy commented 6 years ago

The collision areas appear to change visually when the scale of their container is changed, but from their behaviour I can tell that they remain at their original size. screen shot 2017-11-06 at 14 14 04

ragnard-king commented 6 years ago

Hey @spongepaddy,

The issue here is that the game object has a non-uniform scale of (2,2,1). When the collision object is scaled it is only scaled with a uniform scale, determined by the smallest component of the scale vector, ie. 1 in this case. If you change the scale to (2,2,2) it will behave as you expected.

Keeping this issue open as the editor should have the same behaviour as the engine.

britzl commented 5 years ago

Forum post: https://forum.defold.com/t/falling-off-platform-with-collision/27478/12?u=britzl