MantisBT - opensim
View Issue Details
0006474opensim[REGION] Physics Enginespublic2012-12-21 14:222014-07-29 13:41
cmickeyb 
Robert Adams 
normalminoralways
closedfixed 
master (dev code) 
master (dev code)master (dev code) 
Grid (Multiple Regions per Sim)
BulletSim
.NET / Windows64
None
0006474: BulletSim -- llApplyImpulse only applies the first time its called
Create a prim, set buoyancy to 1.0 and repeatedly call llApplyImpulse. The first impulse seems to move the object though the object stops after moving. Subsequent calls do not appear to move the object at all.
Create a prim with this script:
default
{
    state_entry()
    {
        llSay(0, "Script running");
    }
    
    touch_start(integer i)
    {
        llSetStatus(STATUS_PHYSICS, TRUE);
        llSetStatus(STATUS_DIE_AT_EDGE, TRUE);
        llSetBuoyancy(1.0);
        llSetTimerEvent(1.0);
    }
    
    timer()
    {
       vector force = 3 * llGetMass() * llVecNorm(llGetPos() - <128.0, 128.0, 25.0>);
       llSay(0,"push " + (string)force);
       llApplyImpulse(force, FALSE);
    }
}
No tags attached.
Issue History
2012-12-21 14:22cmickeybNew Issue
2012-12-21 14:22cmickeybStatusnew => assigned
2012-12-21 14:22cmickeybAssigned To => Robert Adams
2012-12-21 14:24cmickeybNote Added: 0023296
2012-12-27 09:42Robert AdamsNote Added: 0023327
2012-12-27 09:42Robert AdamsStatusassigned => resolved
2012-12-27 09:42Robert AdamsFixed in Version => master (dev code)
2012-12-27 09:42Robert AdamsResolutionopen => fixed
2014-07-29 13:41chi11kenStatusresolved => closed

Notes
(0023296)
cmickeyb   
2012-12-21 14:24   
Same behavior for llSetForce
(0023327)
Robert Adams   
2012-12-27 09:42   
There was a problem with physics deactivation that was causing the object to stop and not get restarted. llApplyImpulse should be calibrated to close to the same effect for the same impulse as SL.