mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 20:55:43 +08:00
BulletSim: most of the plumbing for raycast. Needs new BulletSim.dll to
work.
This commit is contained in:
@@ -128,6 +128,7 @@ public struct RaycastHit
|
||||
public UInt32 ID;
|
||||
public float Fraction;
|
||||
public Vector3 Normal;
|
||||
public Vector3 Point;
|
||||
}
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct CollisionDesc
|
||||
@@ -741,6 +742,12 @@ public abstract void SetMargin(BulletShape shape, float val);
|
||||
|
||||
public abstract float GetMargin(BulletShape shape);
|
||||
|
||||
// =====================================================================================
|
||||
// Raycast
|
||||
public abstract SweepHit ConvexSweepTest2(BulletWorld world, BulletBody obj, Vector3 from, Vector3 to, float margin);
|
||||
|
||||
public abstract RaycastHit RayTest2(BulletWorld world, Vector3 from, Vector3 to, uint filterGroup, uint filterMask);
|
||||
|
||||
// =====================================================================================
|
||||
// Debugging
|
||||
public virtual void DumpRigidBody(BulletWorld sim, BulletBody collisionObject) { }
|
||||
|
||||
Reference in New Issue
Block a user