Xiija Posted February 13, 2023 Share Posted February 13, 2023 (edited) so for fun i'm coding a pizza delivery drone. I use the break links function, but it seems to bork the object ? i thouhgt it was my viewer, but all other prims i rez don't do it. the object drops, then disappears ... ( i've tried setting alpha, color, etc to get it to re-rez) it seems like a viewer issue because ... I can only get it to be editable by clicking another prim in world? the code in the pizza box is ... default { state_entry() { } changed(integer change) { if (change & CHANGED_LINK && llGetLinkNumber() == 0 ) { llSetPhysicsMaterial(GRAVITY_MULTIPLIER | RESTITUTION | FRICTION | DENSITY, 0.05, 0.9, 0.1, 1.0); llSetStatus( STATUS_PHYSICS, TRUE); } if (change & CHANGED_LINK && llGetLinkNumber() > 0 ) { llSetStatus( STATUS_PHYSICS, FALSE); } } land_collision_start( vector pos ) { vector myPosition = llGetPos(); myPosition.z = myPosition.z + 0.75; llSetPos( myPosition ); llSetStatus( STATUS_PHYSICS, FALSE); llSetAlpha(0.9, ALL_SIDES); llSetAlpha(1.0, ALL_SIDES); llSetLinkColor(LINK_THIS, <1.0, 1.0, 1.0>, ALL_SIDES); } } Any ideas? anyone seen this behavior before? Thanx for any ... X. Edited February 13, 2023 by Xiija 1 Link to comment Share on other sites More sharing options...
Love Zhaoying Posted February 13, 2023 Share Posted February 13, 2023 (edited) It appears, that your object is physical and after falling it is somehow ending up "partially under" the ground. There are scripting solutions..but perhaps the issue only happens at some locations. Things ending up "under" the ground shouldn't happen in my opinion. Edited February 13, 2023 by Love Zhaoying Link to comment Share on other sites More sharing options...
Xiija Posted February 13, 2023 Author Share Posted February 13, 2023 @Love Zhaoying thanks, i changed the physics call, and now the pizza box lands over the ground, just can't interact with it Link to comment Share on other sites More sharing options...
Quistess Alpha Posted February 13, 2023 Share Posted February 13, 2023 (edited) Just to pinpoint the problem, did you try dropping it from about the same height without breaking links? a hacky solution might be using llSetHoverHeight to never actually hit the ground? Edited February 13, 2023 by Quistess Alpha Link to comment Share on other sites More sharing options...
Xiija Posted February 13, 2023 Author Share Posted February 13, 2023 (edited) the dropping works ok now, but as you can see in the 3rd vid, no one can interact with the box to get the pizza , heh @Quistess Alpha dropping without breaking links works ok ... Edited February 13, 2023 by Xiija Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now