Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008547opensim[REGION] Script Functionspublic2019-06-13 23:592019-06-14 04:02
Reporterdjphil 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformPCOSWindowsOS Version10
Product Version 
Target VersionFixed in Version 
Summary0008547: [COLLISIONS IMPROVEMENT REQUEST] Make llDetectedLinkNumber working when llVolumeDetect is set to TRUE
DescriptionAfter running a few tests on Opensim (with ubODE) and Second Life, I found a failure in collision detection when using the llVolumeDetect function. That's why I'm asking you for this improvement in collision detection.

When you bind some prims and put the attached script in the root prim, collision detection is done on each prim individually but llDetectedLinkNumber always returns 0.
llDetectedLinkNumber is not able to detect the link number collided with the avatar.
It can only do this with the use of touch_start or when llVolumeDetect is on FALSE.
(this is also true in second life)

If llVolumeDetect is FALSE, llDetectedLinkNumber works well with touch_start and collision_start.
If llVolumeDetect is TRUE, llDetectedLinkNumber works well with touch_start but NOT AT ALL with collision_start.

There is no real interest in detecting collisions in llDetectVolume TRUE mode if it is not possible to exactly detect with which link number the collision occurred. It would be much more interesting to know the number of the link of the prim collision, it is obvious.

That's the problem, that's what I'd like you to try to improve.

Thank you in advance.
Steps To Reproducedefault
{
    state_entry()
    {
        llVolumeDetect(TRUE);
    }

    collision_start(integer n)
    {
        integer i;
        for (i = 0; i < n; ++i)
            llOwnerSay(n + ") Lien " + llDetectedLinkNumber(i) + " touché par " + llDetectedKey(i));
    }
    
    touch_start(integer n)
    {
        integer i;
        for (i = 0; i < n; ++i)
            llOwnerSay(n + ") Lien " + llDetectedLinkNumber(i) + " touché par " + llDetectedKey(i));
    }
}
TagsNo tags attached.
Git Revision or version number
Run Mode Grid (Multiple Regions per Sim)
Physics EngineubODE
Script Engine
Environment.NET / Windows64
Mono VersionNone
ViewerFirestorm
Attached Files

- Relationships

-  Notes
(0035394)
UbitUmarov (administrator)
2019-06-14 03:53

Yes this is to replicate SL behavior.
Seems they have a jira open on this since 2012

Think we could report the correct prim.

Anyone sees potential bad side effects for current scripts?
(0035396)
djphil (reporter)
2019-06-14 04:02

osVolumeDetect(TRUE); with correct detection could be a solution without damages.

- Issue History
Date Modified Username Field Change
2019-06-13 23:59 djphil New Issue
2019-06-14 03:53 UbitUmarov Note Added: 0035394
2019-06-14 04:02 djphil Note Added: 0035396


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker