| 2756 |
} |
} |
| 2757 |
|
|
| 2758 |
|
|
| 2759 |
// rex, new function |
//Commented out for now since does not exist in current OpenSim |
| 2760 |
// This function should be called only outside of simulation loop -> OdeLock used. |
// This function should be called only outside of simulation loop -> OdeLock used. |
| 2761 |
public override void SetCollisionMesh(byte[] meshdata, string meshname, bool scalemesh) |
//public override void SetCollisionMesh(byte[] meshdata, string meshname, bool scalemesh) |
| 2762 |
{ |
//{ |
| 2763 |
lock (_parent_scene.OdeLock) |
// lock (_parent_scene.OdeLock) |
| 2764 |
{ |
// { |
| 2765 |
m_DotMeshCollision = false; |
// m_DotMeshCollision = false; |
| 2766 |
if (m_OriginalMesh != null) |
// if (m_OriginalMesh != null) |
| 2767 |
{ |
// { |
| 2768 |
// Never pinned so skip m_OriginalMesh.releasePinned(); |
// // Never pinned so skip m_OriginalMesh.releasePinned(); |
| 2769 |
m_OriginalMesh = null; |
// m_OriginalMesh = null; |
| 2770 |
} |
// } |
| 2771 |
|
|
| 2772 |
if (meshdata != null && CreateOSMeshFromDotMesh(meshdata, meshname, scalemesh)) |
// if (meshdata != null && CreateOSMeshFromDotMesh(meshdata, meshname, scalemesh)) |
| 2773 |
m_DotMeshCollision = true; |
// m_DotMeshCollision = true; |
| 2774 |
|
|
| 2775 |
m_ReCreateCollision = true; |
// m_ReCreateCollision = true; |
| 2776 |
} |
// } |
| 2777 |
|
|
| 2778 |
_parent_scene.AddPhysicsActorTaint(this); |
// _parent_scene.AddPhysicsActorTaint(this); |
| 2779 |
} |
//} |
| 2780 |
|
|
| 2781 |
// rex, new function |
//Commented out for now since does not exist in current OpenSim |
| 2782 |
public override void SetBoundsScaling(bool vbScaleMesh) |
//public override void SetBoundsScaling(bool vbScaleMesh) |
| 2783 |
{ |
//{ |
| 2784 |
if (m_DotMeshCollision) |
// if (m_DotMeshCollision) |
| 2785 |
{ |
// { |
| 2786 |
m_BoundsScaling = vbScaleMesh; |
// m_BoundsScaling = vbScaleMesh; |
| 2787 |
m_ReCreateCollision = true; |
// m_ReCreateCollision = true; |
| 2788 |
} |
// } |
| 2789 |
} |
//} |
| 2790 |
|
|
| 2791 |
// rex, new function |
// rex, new function |
| 2792 |
private bool CreateOSMeshFromDotMesh(byte[] vData, string vMeshName, bool vbScaleMesh) |
private bool CreateOSMeshFromDotMesh(byte[] vData, string vMeshName, bool vbScaleMesh) |