Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006423opensim[REGION] Physics Enginespublic2012-11-11 12:472012-11-12 00:26
Reporterstella Luna 
Assigned ToRobert Adams 
PrioritynormalSeverityminorReproducibilityalways
StatusassignedResolutionopen 
PlatformLinux 64 bitOSDebian GNU/Linux (squeeze)OS Version6.0.6
Product Versionmaster (dev code) 
Target VersionFixed in Version 
Summary0006423: Physics disables touch event
DescriptionIf an object is set to Physical in BulletSim or ODE (tested both) it no longer responds to scripted touch events. As a workaround one can use touch_start or touch_end. The same script works in SL as expected.
Steps To ReproduceCreate a red colored prim with the following script in it. Touch it and it will turn into a green Physical object. A second touch should turn it back to red and non-physical, but it does not because the event is not triggered. Change touch into touch_start or touch_end and it works.

integer ON = FALSE;

default {
    state_entry() {
        llSay(0, "Test Script running");
        llSetStatus(STATUS_PHYSICS, FALSE);
        llSetVehicleType(VEHICLE_TYPE_NONE);
    }
    
    on_rez(integer start_param) {
        llResetScript();
    }
    
    touch(integer num_detected) {
        if (ON) {
            ON = FALSE;
            llSetColor( <1.0, 0.0, 0.0>, ALL_SIDES);
            llSetStatus(STATUS_PHYSICS, FALSE);
            llSetVehicleType(VEHICLE_TYPE_NONE);
        } else {
            ON = TRUE;
            llSetColor( <0.0, 1.0, 0.0>, ALL_SIDES);
            llSetStatus(STATUS_PHYSICS, TRUE);
             
        }
    }
    
}
Additional InformationMono JIT compiler version 2.6.7 (Debian 2.6.7-5.1)
TagsNo tags attached.
Git Revision or version numberOpenSim 0.7.5 Dev OSgrid 0.7.5 (Dev) 4e9509d: 2012-09-28 (Unix/Mono)
Run Mode Grid (1 Region per Sim)
Physics EngineODE, BulletSim
Script Engine
EnvironmentMono / Linux64
Mono VersionOther
ViewerFirestorm
Attached Files

- Relationships

-  Notes
(0023091)
melanie (administrator)
2012-11-11 13:09

This is design behavior.
(0023098)
stella Luna (reporter)
2012-11-12 00:26

Is it documented? It behaves different from SL.

- Issue History
Date Modified Username Field Change
2012-11-11 12:47 stella Luna New Issue
2012-11-11 13:09 melanie Note Added: 0023091
2012-11-11 20:28 Robert Adams Assigned To => Robert Adams
2012-11-11 20:28 Robert Adams Status new => assigned
2012-11-12 00:26 stella Luna Note Added: 0023098


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker