Gaius Goodliffe: Hi Kelly, Andrew said you may be working on an llSetPos problem related to Havok4. In any case, I have an example object which demonstrates a failure of llSetPos under Havok4 where it works fine under Havok1. Should be self explanatory once rezzed, but let me know if you have any questions or comments. Thanks.
Repro:
- Get two mega prims and link them, with their centers close.
- Verify they still link then their centers are 10m apart
- Put the script below in the child prim
integer open;
default
{
state_entry()
{
llSetPos(<0.0, 0.0, 0.0>);
}
touch_start(integer total_number)
{
if ( open = !open )
{
llSetPos(<0.0, 0.0, 10.0>);
llOwnerSay("open");
}
else
{
llSetPos(<0.0, 0.0, 0.0>);
llOwnerSay("closed");
}
}
}
Expected: The child prim moves because this is a valid link distance. (On agni/havok1 this works this way)
Seen on Havok4: The child prim doesn't move (and no error is given).