mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +08:00
add colliders relative velocity projected in collision direction to collisions report information.
This commit is contained in:
@@ -59,12 +59,14 @@ namespace OpenSim.Region.Physics.Manager
|
||||
public Vector3 Position;
|
||||
public Vector3 SurfaceNormal;
|
||||
public float PenetrationDepth;
|
||||
public float RelativeSpeed;
|
||||
|
||||
public ContactPoint(Vector3 position, Vector3 surfaceNormal, float penetrationDepth)
|
||||
{
|
||||
Position = position;
|
||||
SurfaceNormal = surfaceNormal;
|
||||
PenetrationDepth = penetrationDepth;
|
||||
RelativeSpeed = 0f; // for now let this one be set explicity
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user