Set Bounciness: Difference between revisions
Nikitaivanov (talk | contribs) (Created page with "Changes how much momentum a physics object looses when bouncing. Use 0 for a complete stop and 1 for a perfect bounce. * Note that a bounciness higher than 1 will increase the velocity of the physics object each bounce. You must also set bounciness to the object you want it to bounce from. /uploads/Set Bounciness.png Category:Blocks ") |
(Revisited the page) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{Block | |||
|image=Set_Bounciness.png | |||
|type=s | |||
|folder=Physics | |||
|input1={{Port|e|Before}} | |||
|input2={{Port|o}} | |||
|input3={{Port|n|Bounciness}} | |||
|output1={{Port|e|After}} | |||
}} | |||
Changes how much momentum a physics object loses when bouncing. | |||
Use 0 for a complete stop and 1 for a perfect bounce. | |||
== Notes == | |||
* The default bounciness of an object is 0. The bounciness of the ground is 1. | |||
* To calculate the force applied when bouncing, the game takes the force at which the object collided and multiplies it by the bounciness of both objects. | |||
: In conjunction with the previous fact, this means that to make an object bounce when hitting another object, both objects must have their bounciness set. | |||
* If the combined bounciness of two objects is higher than 1, it will increase the velocity of the physics object each bounce. | |||
* Negative values can be used, but they can produce weird results. | |||
[[Category:Blocks]] | [[Category:Blocks]] |
Latest revision as of 13:06, 27 May 2024
Set Bounciness
Type | Script block |
Collider | None |
Folder | Physics |
Ports | |
---|---|
Inputs | Before Object Bounciness |
Outputs | After |
Changes how much momentum a physics object loses when bouncing. Use 0 for a complete stop and 1 for a perfect bounce.
Notes
- The default bounciness of an object is 0. The bounciness of the ground is 1.
- To calculate the force applied when bouncing, the game takes the force at which the object collided and multiplies it by the bounciness of both objects.
- In conjunction with the previous fact, this means that to make an object bounce when hitting another object, both objects must have their bounciness set.
- If the combined bounciness of two objects is higher than 1, it will increase the velocity of the physics object each bounce.
- Negative values can be used, but they can produce weird results.