Tell physics about physics shape when creating. Added some virtual methods to get/set density,gravmod, frition,bounce and shape type ( not in use ). UbitOde now should do convex type on creation or everytime the mesh is changed ( as in change size, shape, etc )

This commit is contained in:
UbitUmarov
2012-03-21 01:46:41 +00:00
parent 2e41294da9
commit 11ed932263
5 changed files with 57 additions and 5 deletions

View File

@@ -1832,6 +1832,7 @@ namespace OpenSim.Region.Framework.Scenes
GetWorldRotation(),
isPhysical,
isPhantom,
PhysicsShapeType,
m_localId);
}
catch
@@ -4732,6 +4733,7 @@ namespace OpenSim.Region.Framework.Scenes
GetWorldRotation(), //physics wants world rotation like all other functions send
UsePhysics,
SetPhantom,
PhysicsShapeType,
m_localId);
PhysActor.SetMaterial(Material);