using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace BansheeEngine
{
/** @addtogroup Physics
* @{
*/
/// Information about a single contact point during physics collision.
[StructLayout(LayoutKind.Sequential), SerializeObject]
public partial struct ContactPoint
{
/// Contact point in world space.
public Vector3 position;
/// Normal pointing from the second shape to the first shape.
public Vector3 normal;
///
/// Impulse applied to the objects to keep them from penetrating. Divide by simulation step to get the force.
///
public float impulse;
/// Determines how far are the objects. Negative value denotes penetration.
public float separation;
}
/** @} */
}