Late Update: Difference between revisions
Nikitaivanov (talk | contribs) (Created page with "Late Update executes scripts _after_ the physics simulation. /uploads/Late Update1.png Outputs: * After Physics: The scripts you want to run after physics. == Notes == * Each frame Fancade does the following: 1. Run scripts 2. Simulate physics 3. Run Late Update scripts == Examples == A. Position an object exactly "glued to" a physics object File:Screenshot_20210127-091113_6c69499164362a0dbe2f1dfe7c62199a.jpg B. Init...") |
(Updated and revisited the page) |
||
Line 1: | Line 1: | ||
Late Update | {{Block | ||
|image=Late Update.png | |||
|type=s | |||
|folder=control | |||
|input1={{Port|e|Before}} | |||
|output1={{Port|e|After Physics}} | |||
|output2={{Port|e|After}} | |||
}} | |||
Late Update executes scripts ''after'' the physics simulation. | |||
== Notes == | == Notes == | ||
Line 12: | Line 16: | ||
2. Simulate physics | 2. Simulate physics | ||
3. Run Late Update scripts | 3. Run Late Update scripts | ||
4. Display everything to the screen | |||
== Examples == | == Examples == | ||
* Position an object to look visually "glued to" a physics object. | |||
[[File: | : [[File:Late Update example1.jpg|none|thumb|Object B will not lag behind Object A]] | ||
[[File: | * Initialize blocks after they've all added themselves to a list. | ||
: [[File:Late Update example2.jpg|none|thumb|The loop is guaranteed to run after all objects have been added to the list]] | |||
[[File: | |||
* Late Update can be used to make invisible physics objects. | |||
: [[File:Late Update example3.jpg|none|thumb|]] | |||
[[Category:Blocks]] | [[Category:Blocks]] |
Latest revision as of 20:37, 19 May 2024
Late Update
Type | Script block |
Collider | None |
Folder | Control |
Ports | |
---|---|
Inputs | Before |
Outputs | After Physics After |
Late Update executes scripts after the physics simulation.
Notes
- Each frame Fancade does the following:
1. Run scripts 2. Simulate physics 3. Run Late Update scripts 4. Display everything to the screen
Examples
- Position an object to look visually "glued to" a physics object.
- Initialize blocks after they've all added themselves to a list.
- Late Update can be used to make invisible physics objects.