Class CollisionEventUnit
Inherited Members
Namespace: Ludiq.Bolt
Syntax
[UnitCategory("Events/Physics")]
public abstract class CollisionEventUnit : GameObjectEventUnit<Collision>, ISerializationCallbackReceiver, IEventHandlerUnit, IEventUnit, IBehaviourUnit, IUnit, IGraphElementWithDebugData, IBehaviourGraphElement, IGraphElementWithData, IGraphElement, IGraphChild, IObservableDisposable, IDisposable, INotifiedCollectionChild<IGraph>, ICollectionChild<IGraph>, IPrewarmable, IIdentifiable, INotifyPropertyChanged, IGraphEventHandler<Collision>
Properties
collider
The collider we hit.
Declaration
[DoNotSerialize]
public ValueOutput collider { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
contacts
The contact points generated by the physics engine.
Declaration
[DoNotSerialize]
public ValueOutput contacts { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
data
The complete collision data object.
Declaration
[DoNotSerialize]
public ValueOutput data { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
eventProxyType
Declaration
public override Type eventProxyType { get; }
Property Value
Type | Description |
---|---|
Type |
Overrides
Ludiq.Bolt.GameObjectEventUnit<Collision>.eventProxyType
impulse
The total impulse applied to this contact pair to resolve the collision.
Declaration
[DoNotSerialize]
public ValueOutput impulse { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
relativeVelocity
The relative linear velocity of the two colliding objects.
Declaration
[DoNotSerialize]
public ValueOutput relativeVelocity { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
Methods
AssignArguments(Flow, Collision)
Declaration
protected override void AssignArguments(Flow flow, Collision collision)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow | |
Collision | collision |
Overrides
Ludiq.Bolt.EventHandlerUnit<Collision>.AssignArguments(Ludiq.Bolt.Flow, Collision)
Definition()
Declaration
protected override void Definition()
Overrides
Ludiq.Bolt.GameObjectEventUnit<Collision>.Definition()