Problem with EntityParent et ScaleEntity

Blitz3D Forums/Blitz3D Programming/Problem with EntityParent et ScaleEntity

why don't you scale down the other entity, on the factor of how much the parent entity is scaled up?

ScaleEntity Parent,4,6,4

ScaleEntity Child,2,2,2
EntityParent Child,Parent


to...
ScaleEntity Parent,4,6,4

ScaleEntity Child,0.5,0.333,0.5
EntityParent Child,Parent


Take the scale of the child, and divide the number by the parents scale.

ScaleEntity Parent,4,6,4
ScaleEntity Child,2,2,2

x = 2/4
y = 2/6
z = 2/4

That should sort it. The maths might be a bit off, but it should sort the problem :o)