Jypeli 10
The simple game programming library
Collision.cs
Siirry tämän tiedoston dokumentaatioon.
1using System;
2using System.Collections.Generic;
3
5{
6#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
7 [Obsolete("Ei käytössä")]
8 public class Collision
9 {
10 public class ContactPoint
11 {
12 public Vector Position { get; set; }
13 public Vector Normal { get; set; }
14
15 public ContactPoint(Vector pos, Vector n)
16 {
17 Position = pos;
18 Normal = n;
19 }
20 }
21
22 public IPhysicsBody Object1 { get; private set; }
23 public IPhysicsBody Object2 { get; private set; }
24 public IEnumerable<ContactPoint> Contacts { get; private set; }
25
26 public Collision(IPhysicsBody o1, IPhysicsBody o2, IEnumerable<ContactPoint> contacts)
27 {
28 Object1 = o1;
29 Object2 = o2;
30 Contacts = contacts;
31 }
32 }
33}
ContactPoint(Vector pos, Vector n)
Definition: Collision.cs:15
IPhysicsBody Object1
Definition: Collision.cs:22
IEnumerable< ContactPoint > Contacts
Definition: Collision.cs:24
IPhysicsBody Object2
Definition: Collision.cs:23
Collision(IPhysicsBody o1, IPhysicsBody o2, IEnumerable< ContactPoint > contacts)
Definition: Collision.cs:26
Rajapinta fysiikkamoottorin tietämää fysiikkakappaletta varten.
Definition: IPhysicsBody.cs:10
2D-vektori.
Definition: Vector.cs:67