Jypeli
10
The simple game programming library
Collision.cs
Siirry tämän tiedoston dokumentaatioon.
1
using
System
;
2
using
System
.Collections.Generic;
3
4
namespace
Jypeli.Physics
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
}
Jypeli.Physics.Collision.ContactPoint
Definition:
Collision.cs:11
Jypeli.Physics.Collision.ContactPoint.Position
Vector Position
Definition:
Collision.cs:12
Jypeli.Physics.Collision.ContactPoint.ContactPoint
ContactPoint(Vector pos, Vector n)
Definition:
Collision.cs:15
Jypeli.Physics.Collision.ContactPoint.Normal
Vector Normal
Definition:
Collision.cs:13
Jypeli.Physics.Collision
Definition:
Collision.cs:9
Jypeli.Physics.Collision.Object1
IPhysicsBody Object1
Definition:
Collision.cs:22
Jypeli.Physics.Collision.Contacts
IEnumerable< ContactPoint > Contacts
Definition:
Collision.cs:24
Jypeli.Physics.Collision.Object2
IPhysicsBody Object2
Definition:
Collision.cs:23
Jypeli.Physics.Collision.Collision
Collision(IPhysicsBody o1, IPhysicsBody o2, IEnumerable< ContactPoint > contacts)
Definition:
Collision.cs:26
Jypeli.Physics.IPhysicsBody
Rajapinta fysiikkamoottorin tietämää fysiikkakappaletta varten.
Definition:
IPhysicsBody.cs:10
Jypeli.Physics
Definition:
Collision.cs:5
System
Definition:
CFFauxAttributes.cs:29
Jypeli.Vector
2D-vektori.
Definition:
Vector.cs:67
Jypeli
GameObjects
PhysicsObject
Collision.cs
Generoinut projektille Jypeli Tue Sep 14 2021 15:57:42
1.9.2