mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
scale SwitchCondition distance properly
This commit is contained in:
parent
430abbeaa0
commit
da6fd24c9a
@ -79,4 +79,10 @@ write(ostream &out, int indent_level) const {
|
||||
void EggSwitchConditionDistance::
|
||||
transform(const LMatrix4d &mat) {
|
||||
_center = _center * mat;
|
||||
|
||||
LVector3d in = LVector3d(_switch_in, 0.0, 0.0) * mat;
|
||||
LVector3d out = LVector3d(_switch_out, 0.0, 0.0) * mat;
|
||||
|
||||
_switch_in = in.length();
|
||||
_switch_out = out.length();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user