Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008547opensim[REGION] Script Functionspublic2019-06-13 23:592020-04-04 03:27
Assigned Todjphil 
PlatformPCOperating SystemWindowsOperating System Version10
Product Version 
Target VersionFixed in Version0.9.1.1 
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

    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
Attached Files

- Relationships

-  Notes
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?
djphil (reporter)
2019-06-14 04:02

osVolumeDetect(TRUE); with correct detection could be a solution without damages.
djphil (reporter)
2020-02-03 20:57

I just tested your modification of volume detection on link set.

He works wonderfully well.
Thank you very much again for this new feature.
Super improvement

Tested with:

I still leave it open for a few days in case someone wishes to add a comment.
tampa (reporter)
2020-02-05 11:40

Do the changes apply to Y and ubode or to Bullet and X as well?
UbitUmarov (administrator)
2020-02-05 11:45

should apply to all
djphil (reporter)
2020-04-04 03:26

No new bug reports for this new collision detection capability.
Everything works fine for everyone it seems ...

So a big thank you for this very useful and much appreciated feature.

- 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
2020-02-03 20:57 djphil Note Added: 0036155
2020-02-05 11:40 tampa Note Added: 0036156
2020-02-05 11:45 UbitUmarov Note Added: 0036157
2020-04-04 03:26 djphil Note Added: 0036334
2020-04-04 03:26 djphil Status new => resolved
2020-04-04 03:26 djphil Fixed in Version =>
2020-04-04 03:26 djphil Resolution open => fixed
2020-04-04 03:26 djphil Assigned To => djphil
2020-04-04 03:27 djphil Status resolved => closed

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker