Unravel Engine C# Reference
Loading...
Searching...
No Matches
Unravel.Core.Collision Class Reference

Represents a collision that occurs between two entities. More...

Inheritance diagram for Unravel.Core.Collision:

Public Member Functions

override string ToString ()
 Converts the collision to its string representation.
 
string ToString (string format)
 Converts the collision to its string representation with a specified format.
 
string ToString (string format, IFormatProvider formatProvider)
 Converts the collision to its string representation with a specified format and format provider.
 

Public Attributes

Entity entity
 Gets the entity involved in the collision.
 
ContactPoint[] contacts
 Gets the array of contact points where the collision occurred.
 

Detailed Description

Represents a collision that occurs between two entities.

Definition at line 15 of file Collision.cs.

Member Function Documentation

◆ ToString() [1/3]

override string Unravel.Core.Collision.ToString ( )

Converts the collision to its string representation.

Returns
A string that represents the collision.

Definition at line 31 of file Collision.cs.

◆ ToString() [2/3]

string Unravel.Core.Collision.ToString ( string format)

Converts the collision to its string representation with a specified format.

Parameters
formatThe format string.
Returns
A string that represents the collision.

Definition at line 41 of file Collision.cs.

◆ ToString() [3/3]

string Unravel.Core.Collision.ToString ( string format,
IFormatProvider formatProvider )

Converts the collision to its string representation with a specified format and format provider.

Parameters
formatThe format string.
formatProviderAn object that supplies culture-specific formatting information.
Returns
A string that represents the collision.

Definition at line 52 of file Collision.cs.

Member Data Documentation

◆ contacts

ContactPoint [] Unravel.Core.Collision.contacts

Gets the array of contact points where the collision occurred.

Definition at line 25 of file Collision.cs.

◆ entity

Entity Unravel.Core.Collision.entity

Gets the entity involved in the collision.

Definition at line 20 of file Collision.cs.


The documentation for this class was generated from the following file: