Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Object doesn't stop moving.

Zepp Zaftig
Unregistered Abuser
Join date: 20 Mar 2005
Posts: 470
01-11-2006 23:02
Putting this script inside an object causes the object to keep moving after the 0.2 seconds after the impulse was applied and physics turned off. This is a bug, right? Anyone has any suggestions for a workaround?

CODE

default {
state_entry() {
llSetStatus(STATUS_PHYSICS, TRUE);
llGroundRepel(1, FALSE, 0.3);
llApplyImpulse(<1,0,0>, FALSE);
llSleep(0.2);
llSetStatus(STATUS_PHYSICS, FALSE);
}
}
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
01-11-2006 23:38
llSetPos(llGetPos()); maybe?
Zepp Zaftig
Unregistered Abuser
Join date: 20 Mar 2005
Posts: 470
01-12-2006 03:57
From: Eloise Pasteur
llSetPos(llGetPos()); maybe?


Yeah, doing that after disabling physics seems to more or less do the trick.