Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007246opensim[REGION] Physics Enginespublic2014-07-02 08:192014-07-05 12:35
Reporterargus Portal 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0007246: llSetKeyframedMotion don't work as expected
DescriptionIn BulletSim the object behaves as Phantom. So it is impossible, to create, as example, an elevator.


In ODE same problem, if platform, on that the Avatar stands, is very thin.

Is it thick enough, the avatar is pushed sidewards but stays on the platform.


In SecondLife the platform always move the avatar as expected. The Avatar stays at
his place. At best he plays the walking-animation.

Tested today, 2.July 2014 at SandboxPlaza I and II
Steps To ReproduceTry this test-Script

float z_offset;


default
{
    state_entry()
    {
        z_offset = -5.0;
    }


    touch_start(integer nr)
    {

        z_offset *= -1.0;

        llOwnerSay((string)z_offset);
        
        llSetKeyframedMotion([<0,0,z_offset>,10.0 ],[KFM_DATA, KFM_TRANSLATION]);

    }


}
TagsNo tags attached.
Git Revision or version number
Run Mode Grid (Multiple Regions per Sim)
Physics EngineBasicPhysics
Script Engine
EnvironmentUnknown
Mono VersionNone
Viewer
Attached Files

- Relationships

-  Notes
(0026424)
djphil (reporter)
2014-07-03 10:41

See too : http://opensimulator.org/mantis/view.php?id=7167 [^]
(0026435)
vegaslon (reporter)
2014-07-05 08:03

For Bulletsim as far as the elevator goes, if you rock your avatar forward and backwards, on top of the platform, your avatar will be moved upwards. As well if you put a running vehicle on top of the platform it will be moved upwards as well.

So ultimately would need to set a flag in the linkset when a object is moving that tells the physics engine that it is being moved outside of physics, that would in effect stop the avatar from going non static.

For the rotating platform to work would need need keyframed motion to also set a variable that says what the rotational velocity is for its movement so the physics engine can figure out, when something is colliding with it, what kind of velocity and rotational velocity should be applied to each of them based on distance from center.
(0026436)
djphil (reporter)
2014-07-05 08:32

The two scripts in mantis 7167 work very well in Second Life.

With elevator script in SL, your avatar up and down even if you do not move forward and back.

With the carousel script in SL, your avatar rotates with the same platform if you do not move your avatar manually.

It should add anything to these two scripts.

The problem is that llKeyFrameMotion is not properly implemented in OpenSim.
(0026437)
melanie (administrator)
2014-07-05 12:35

Actually, the issue wit llSetKeyframeMotion is that it doesn't send velocity data to the viewer. Everything else works. That avatars are not moved/transported by the prims being moved is not caused by anything keyframe motion does, but rather is in the province of physics.
A fix likely involves changes to both, as physics needs to know the velocity/spin to make intelligent decisions.

- Issue History
Date Modified Username Field Change
2014-07-02 08:19 argus Portal New Issue
2014-07-03 10:41 djphil Note Added: 0026424
2014-07-05 08:03 vegaslon Note Added: 0026435
2014-07-05 08:32 djphil Note Added: 0026436
2014-07-05 12:35 melanie Note Added: 0026437


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker