mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 11:33:28 +08:00
Revolution is on the roll again! :)
Fixes: Undo, T-pose of others on login, modifiedBulletX works again, feet now stand on the ground instead of in the ground, adds checks to CombatModule. Adds: Redo, Land Undo, checks to agentUpdate (so one can not fall off of a region), more vehicle parts. Finishes almost all of LSL (1 function left, 2 events). Direct flames and kudos to Revolution, please Signed-off-by: Melanie <melanie@t-data.com>
This commit is contained in:
@@ -500,6 +500,18 @@ namespace OpenSim.Region.Physics.BulletXPlugin
|
||||
public BulletXScene(String sceneIdentifier)
|
||||
{
|
||||
//identifier = sceneIdentifier;
|
||||
cDispatcher = new CollisionDispatcherLocal(this);
|
||||
Vector3 worldMinDim = new Vector3((float)minXY, (float)minXY, (float)minZ);
|
||||
Vector3 worldMaxDim = new Vector3((float)maxXY, (float)maxXY, (float)maxZ);
|
||||
opCache = new AxisSweep3(worldMinDim, worldMaxDim, maxHandles);
|
||||
sicSolver = new SequentialImpulseConstraintSolver();
|
||||
|
||||
lock (BulletXLock)
|
||||
{
|
||||
ddWorld = new DiscreteDynamicsWorld(cDispatcher, opCache, sicSolver);
|
||||
ddWorld.Gravity = new Vector3(0, 0, -gravity);
|
||||
}
|
||||
//this._heightmap = new float[65536];
|
||||
}
|
||||
|
||||
public static float Gravity
|
||||
@@ -582,12 +594,12 @@ namespace OpenSim.Region.Physics.BulletXPlugin
|
||||
pos.Y = position.Y;
|
||||
pos.Z = position.Z + 20;
|
||||
BulletXCharacter newAv = null;
|
||||
newAv.Flying = isFlying;
|
||||
lock (BulletXLock)
|
||||
{
|
||||
newAv = new BulletXCharacter(avName, this, pos);
|
||||
_characters.Add(newAv.RigidBody, newAv);
|
||||
}
|
||||
newAv.Flying = isFlying;
|
||||
return newAv;
|
||||
}
|
||||
|
||||
@@ -983,6 +995,11 @@ namespace OpenSim.Region.Physics.BulletXPlugin
|
||||
public override void VehicleRotationParam(int param, OpenMetaverse.Quaternion rotation)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void VehicleFlags(int param, bool remove)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void SetVolumeDetect(int param)
|
||||
|
||||
Reference in New Issue
Block a user