Difference between revisions of "On Collision Start (LogiX node)"
Jump to navigation
Jump to search
(Mark stub) |
(Update page with actually useful information) |
||
Line 1: | Line 1: | ||
<languages></languages> | <languages></languages> | ||
<translate> | <translate> | ||
− | {{ | + | <!--T:1--> |
− | + | {{Infobox Logix Node | |
+ | | Name = On Collision Start | ||
+ | | Image =[[File: OnCollisionStartNode.png | noframe | 128px | 'On Collision Start' LogiX node ]] | ||
+ | | Input0Type = ICollider | Input0Name = Collider | ||
+ | | Output0Type = Impulse | Output0Name = OnEvent | ||
+ | | Output1Type = ICollider | Output1Name = Other | ||
+ | }} | ||
− | <!-- | + | <!--T:2--> |
+ | The '''On Collision Start''' node fires an impulse from <code>OnEvent</code> when the <code>Other</code> collider starts colliding with the input <code>Collider</code>. | ||
− | == | + | == Usage == <!--T:3--> |
− | + | The <code>Other</code> output provides the collider which started colliding with the input <code>Collider</code>. This value is available for the duration of the impulse chain started from <code>OnEvent</code>. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | Note that, in general, collisions where neither collider is a CharacterController will generate an impulse from <code>OnEvent</code> for ''each'' user in a session. This usually requires filtering the impulses such that only the ones for relevant users propagate to downstream nodes. For collisions where the <code>Other</code> collider is a CharacterController an impulse will only be fired for the CharacterCollider's SimulatingUser. | |
− | == Examples == | + | == Examples == <!--T:4--> |
− | == Node Menu == | + | == Node Menu == <!--T:5--> |
</translate> | </translate> | ||
− | + | [[Category:LogiX{{#translation:}}|On Collision Start]] | |
− | [[Category:LogiX|On Collision Start]] | + | [[Category:LogiX:Physics{{#translation:}}|On Collision Start]] |
− | [[Category:LogiX: Physics|On Collision Start]] | + | {{:NodeMenu-Physics{{#translation:}}}} |
− | {{:NodeMenu-Physics}} |
Revision as of 19:33, 3 May 2021
On Collision Start | ||
---|---|---|
Inputs | ||
ICollider | Collider | |
Outputs | ||
Impulse | OnEvent | |
ICollider | Other |
The On Collision Start node fires an impulse from OnEvent
when the Other
collider starts colliding with the input Collider
.
Usage
The Other
output provides the collider which started colliding with the input Collider
. This value is available for the duration of the impulse chain started from OnEvent
.
Note that, in general, collisions where neither collider is a CharacterController will generate an impulse from OnEvent
for each user in a session. This usually requires filtering the impulses such that only the ones for relevant users propagate to downstream nodes. For collisions where the Other
collider is a CharacterController an impulse will only be fired for the CharacterCollider's SimulatingUser.