Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
StaticPlaneColliderShape.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 {
8  {
9  /// <summary>
10  /// Initializes a new instance of the <see cref="StaticPlaneColliderShape"/> class.
11  /// A static plane that is solid to infinity on one side.
12  /// Several of these can be used to confine a convex space in a manner that completely prevents tunneling to the outside.
13  /// The plane itself is specified with a normal and distance as is standard in mathematics.
14  /// </summary>
15  /// <param name="normal">The normal.</param>
16  /// <param name="offset">The offset.</param>
17  public StaticPlaneColliderShape(Vector3 normal, float offset)
18  {
19  Type = ColliderShapeTypes.StaticPlane;
20  Is2D = false;
21 
22  Normal = normal;
23  Offset = offset;
24 
25  InternalShape = new BulletSharp.StaticPlaneShape(normal, offset);
26  }
27 
28  /// <summary>
29  /// Gets the normal.
30  /// </summary>
31  /// <value>
32  /// The normal.
33  /// </value>
34  public Vector3 Normal { get; private set; }
35 
36  /// <summary>
37  /// Gets the offset.
38  /// </summary>
39  /// <value>
40  /// The offset.
41  /// </value>
42  public float Offset { get; private set; }
43  }
44 }
Represents a three dimensional mathematical vector.
Definition: Vector3.cs:42
StaticPlaneColliderShape(Vector3 normal, float offset)
Initializes a new instance of the StaticPlaneColliderShape class. A static plane that is solid to inf...
using SiliconStudio.Paradox. Physics