Page MenuHomeFeedback Tracker

ctrlModelUp/ctrlModelDirection are not normalized and depend on scale which cannot be read
Closed, ResolvedPublic

Description

As mentioned in , ctrlscale doesnt work, yet ctrlModelUp and ctrlModelDirection return vectors that are not normalised but somehow streched according to the scale set in config, scale which is unknow to the script.

also the vector magnituide is not exactly scale value. if I set scale in config to:

scale = "2.125 / (getResolution select 5)";

to make it adapt to UI resolution, vectorMagnitude ctrlModelUp for example will return 2.125 and not the result of (2.125/0.85 as I have currently set)

Trying to set ctrlSetDirection with either normilised or not normalised vectors will result in model scaling to 1 as well even if the scale set in the config is different. After ctrlSetDirection operation there is no scripted way of getting back to config scale.

Details

Legacy ID
2424749142
Severity
None
Resolution
Fixed
Reproducibility
Always
Category
Scripting
Steps To Reproduce

read and set direction on object control inside object container when scale set in config is not 1

Event Timeline

Killzone_Kid edited Additional Information. (Show Details)
Killzone_Kid set Category to Scripting.
Killzone_Kid set Reproducibility to Always.
Killzone_Kid set Severity to None.
Killzone_Kid set Resolution to Fixed.
Killzone_Kid set Legacy ID to 2424749142.May 7 2016, 7:16 PM

Mass-closing all resolved issues not updated in the last month.

Please PM me in BI Forums (http://forums.bistudio.com/member.php?55374-Fireball) if you feel your bug was closed in error.