mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 11:33:28 +08:00
add osLocalTeleportAgent(key agent, vector position, vector velocity, vector lookat, LSL_Integer flags). Velocity only works with ubOde but still not good. flags = bit field: 1 use velocity, 2 use lookat, 4 rotate avatar look in current velocity direction (ignored if 2 ie flag = 7 is same as 3). This bypasses most the unnecessary logic of osTeleportAgent, having usage same permissions. It may do region crossings(?). Experimental stage, feedbakc expected ;)
This commit is contained in:
@@ -1976,8 +1976,8 @@ namespace OpenSim.Region.PhysicsModule.ubOde
|
||||
|
||||
private void changeTargetVelocity(Vector3 newVel)
|
||||
{
|
||||
m_pidControllerActive = true;
|
||||
m_freemove = false;
|
||||
//m_pidControllerActive = true;
|
||||
//m_freemove = false;
|
||||
_target_velocity = newVel;
|
||||
if (Body != IntPtr.Zero)
|
||||
SafeNativeMethods.BodyEnable(Body);
|
||||
|
||||
Reference in New Issue
Block a user