Collision Class
Namespace: Stride.Physics
Assembly: Stride.Physics.dll
System.Object →
Collision
Derived from Collision:
|
Improve this Doc
View Source
Fields
public HashSet<ContactPoint> Contacts
Field Value
Type |
Description |
System.Collections.Generic.HashSet<ContactPoint> |
|
|
Improve this Doc
View Source
Properties
ColliderA
public PhysicsComponent ColliderA { get; }
Property Value
ColliderB
public PhysicsComponent ColliderB { get; }
Property Value
HasEndedFromComponentRemoval
True if the collision has ended because one of the colliders has been removed,
either by removing the entity from the scene or by removing physics component
from the entity.
public bool HasEndedFromComponentRemoval { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Methods
public ChannelMicroThreadAwaiter<ContactPoint> ContactEnded()
Returns
public ChannelMicroThreadAwaiter<ContactPoint> ContactUpdate()
Returns
Ended()
public async Task Ended()
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Equals(Object)
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
GetHashCode()
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
Initialize(PhysicsComponent, PhysicsComponent)
public void Initialize(PhysicsComponent colliderA, PhysicsComponent colliderB)
Parameters
public ChannelMicroThreadAwaiter<ContactPoint> NewContact()
Returns
Extension Methods