Difference between revisions of "On Collision Stay (LogiX node)"

From Neos Wiki
Jump to navigation Jump to search
(Remove the LogixStubs category)
(~A)
Line 19: Line 19:
 
The <code>OnEvent</code> impulses from On Collision Stay start the frame after an impulse would be fired by [[On Collision Start (LogiX node)]], i.e. the frame after the <code>Collider</code> and <code>Other</code> start collding.
 
The <code>OnEvent</code> impulses from On Collision Stay start the frame after an impulse would be fired by [[On Collision Start (LogiX node)]], i.e. the frame after the <code>Collider</code> and <code>Other</code> start collding.
  
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.
+
Note that, in general, collisions where neither collider is a [[CharacterController (Component)]] 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.
== Usage == <!--T:3-->
 
  
 
== Examples == <!--T:4-->
 
== Examples == <!--T:4-->
 +
Tutorial from ProbablePrime on the collider event nodes:
 +
<youtube>https://www.youtube.com/watch?v=ewM-KzMD9LA</youtube>
  
 
== Node Menu == <!--T:5-->
 
== Node Menu == <!--T:5-->

Revision as of 09:46, 8 May 2021

Other languages:
English • ‎日本語
On Collision Stay
'On Collision Stay' LogiX node
Inputs
  ICollider Collider
Outputs
  Impulse OnEvent
  ICollider Other

The On Collision Stay node fires an impulse from OnEvent every frame while the Other collider is colliding with the input Collider.

Usage

The Other output provides the collider which is colliding with the input Collider. This value is available for the duration of the impulse chain started from OnEvent.


The OnEvent impulses from On Collision Stay start the frame after an impulse would be fired by On Collision Start (LogiX node), i.e. the frame after the Collider and Other start collding.

Note that, in general, collisions where neither collider is a CharacterController (Component) 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.

Examples

Tutorial from ProbablePrime on the collider event nodes:

Node Menu

Physics
Back Apply Character Force Apply Character Impulse As Character Controller Character Controller User Character Gravity Character Ground Collider
Character Linear Velocity Find Character Controller Hit UV Coordinate Is Character Controller Is Character On Ground On Collision End On Collision Start
On Collision Stay Raycast One Raycaster Set Character Gravity Set Character Velocity