aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorRobert Adams2012-11-06 12:04:55 -0800
committerRobert Adams2012-11-06 18:15:48 -0800
commit36d77fe27c4a49127c5d5baa4ed4653a25f1726d (patch)
tree83fab2a130e97b6c85e81573c684c2d84a4c4f54 /OpenSim
parentTo keep things consistent allowing an UnregisterModuleInterface... Force the... (diff)
downloadopensim-SC_OLD-36d77fe27c4a49127c5d5baa4ed4653a25f1726d.zip
opensim-SC_OLD-36d77fe27c4a49127c5d5baa4ed4653a25f1726d.tar.gz
opensim-SC_OLD-36d77fe27c4a49127c5d5baa4ed4653a25f1726d.tar.bz2
opensim-SC_OLD-36d77fe27c4a49127c5d5baa4ed4653a25f1726d.tar.xz
BulletSim: Add separate linear and angular damping function calls. Add function for recalculating compound shape bounding box.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Physics/BulletSPlugin/BulletSimAPI.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/BulletSimAPI.cs b/OpenSim/Region/Physics/BulletSPlugin/BulletSimAPI.cs
index 702bd77..07149d8 100644
--- a/OpenSim/Region/Physics/BulletSPlugin/BulletSimAPI.cs
+++ b/OpenSim/Region/Physics/BulletSPlugin/BulletSimAPI.cs
@@ -632,6 +632,9 @@ public static extern IntPtr RemoveChildShapeFromCompoundShapeIndex2(IntPtr cShap
632public static extern void RemoveChildShapeFromCompoundShape2(IntPtr cShape, IntPtr removeShape); 632public static extern void RemoveChildShapeFromCompoundShape2(IntPtr cShape, IntPtr removeShape);
633 633
634[DllImport("BulletSim", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity] 634[DllImport("BulletSim", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
635public static extern void RecalculateCompoundShapeLocalAabb2(IntPtr cShape);
636
637[DllImport("BulletSim", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
635public static extern IntPtr DuplicateCollisionShape2(IntPtr sim, IntPtr srcShape, uint id); 638public static extern IntPtr DuplicateCollisionShape2(IntPtr sim, IntPtr srcShape, uint id);
636 639
637[DllImport("BulletSim", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity] 640[DllImport("BulletSim", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
@@ -919,6 +922,12 @@ public static extern Vector3 GetGravity2(IntPtr obj);
919public static extern void SetDamping2(IntPtr obj, float lin_damping, float ang_damping); 922public static extern void SetDamping2(IntPtr obj, float lin_damping, float ang_damping);
920 923
921[DllImport("BulletSim", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity] 924[DllImport("BulletSim", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
925public static extern void SetLinearDamping2(IntPtr obj, float lin_damping);
926
927[DllImport("BulletSim", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
928public static extern void SetAngularDamping2(IntPtr obj, float ang_damping);
929
930[DllImport("BulletSim", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]
922public static extern float GetLinearDamping2(IntPtr obj); 931public static extern float GetLinearDamping2(IntPtr obj);
923 932
924[DllImport("BulletSim", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity] 933[DllImport("BulletSim", CallingConvention = CallingConvention.Cdecl), SuppressUnmanagedCodeSecurity]