Class CollisionEventUnit
Inheritance
Implements
Inherited Members
Namespace: Unity.VisualScripting
Assembly: Unity.VisualScripting.Flow.dll
Syntax
[UnitCategory("Events/Physics")]
public abstract class CollisionEventUnit : GameObjectEventUnit<Collision>, IGraphElementWithData, IGraphEventHandler<Collision>, IGameObjectEventUnit, IEventUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable, IGraphEventListener
Properties
collider
The collider we hit.
Declaration
[DoNotSerialize]
public ValueOutput collider { get; }
Property Value
Type | Description |
---|---|
Value |
contacts
The contact points generated by the physics engine.
Declaration
[DoNotSerialize]
public ValueOutput contacts { get; }
Property Value
Type | Description |
---|---|
Value |
data
The complete collision data object.
Declaration
[DoNotSerialize]
public ValueOutput data { get; }
Property Value
Type | Description |
---|---|
Value |
impulse
The total impulse applied to this contact pair to resolve the collision.
Declaration
[DoNotSerialize]
public ValueOutput impulse { get; }
Property Value
Type | Description |
---|---|
Value |
relativeVelocity
The relative linear velocity of the two colliding objects.
Declaration
[DoNotSerialize]
public ValueOutput relativeVelocity { get; }
Property Value
Type | Description |
---|---|
Value |
Methods
AssignArguments(Flow, Collision)
Declaration
protected override void AssignArguments(Flow flow, Collision collision)
Parameters
Overrides
Definition()
Declaration
protected override void Definition()