Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
Contact.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using SiliconStudio.Core.Mathematics;
4 
5 namespace SiliconStudio.Paradox.Physics
6 {
7  /// <summary>
8  /// Generic contact between colliders, Always using Vector3 as the engine allows mixed 2D/3D contacts.
9  /// Note: As class because it is shared between the 2 Colliders.. maybe struct is faster?
10  /// </summary>
11  public class Contact
12  {
13  #region Constants and Fields
14 
16 
18 
19  public float Distance;
20 
21  public Vector3 Normal;
22 
24 
26 
27  #endregion
28  }
29 
30  public struct CollisionArgs
31  {
32  #region Constants and Fields
33 
34  public Contact Contact;
35 
36  #endregion
37  }
38 }
Represents a three dimensional mathematical vector.
Definition: Vector3.cs:42
Generic contact between colliders, Always using Vector3 as the engine allows mixed 2D/3D contacts...
Definition: Contact.cs:11
using SiliconStudio.Paradox. Physics