Challenge - 5 Problems
Physics Material Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ Predict Output
intermediate2:00remaining
What is the output of the friction value?
Consider a Unity Physics Material with dynamic friction set to 0.5 and static friction set to 0.7. If you print the dynamic friction value in a script, what will be the output?
Unity
using UnityEngine;
public class FrictionTest : MonoBehaviour {
public PhysicMaterial mat;
void Start() {
Debug.Log(mat.dynamicFriction);
}
}Attempts:
2 left
💡 Hint
Remember dynamic friction is different from static friction.
✗ Incorrect
The dynamic friction value is 0.5 as set in the Physics Material. Static friction is a separate property and does not affect this output.
❓ Predict Output
intermediate2:00remaining
What happens when bounce is set to 1?
In Unity, if a Physics Material has bounciness set to 1 and bounce combine set to Maximum, what will happen when a ball hits a surface with this material?
Attempts:
2 left
💡 Hint
Bounciness of 1 means no energy loss on bounce.
✗ Incorrect
A bounciness of 1 means the ball bounces back with full energy, so it will bounce back to the original height.
❓ Predict Output
advanced2:00remaining
What is the friction value used during collision?
Two objects collide in Unity. Object A has a Physics Material with dynamic friction 0.4 and static friction 0.6. Object B has dynamic friction 0.8 and static friction 0.9. The friction combine mode is set to Multiply. What is the dynamic friction used during collision?
Attempts:
2 left
💡 Hint
Multiply means multiply the two friction values.
✗ Incorrect
Dynamic friction used is 0.4 * 0.8 = 0.32 when combine mode is Multiply.
❓ Predict Output
advanced2:00remaining
What is the resulting bounce when combine mode is Maximum?
If two Physics Materials collide, one with bounciness 0.3 and the other with 0.7, and the bounce combine mode is set to Maximum, what is the resulting bounce value used?
Attempts:
2 left
💡 Hint
Maximum means the higher bounce value is used.
✗ Incorrect
The bounce combine mode Maximum uses the higher of the two bounciness values, which is 0.7.
🧠 Conceptual
expert2:00remaining
Which Physics Material setting causes an error?
Which of the following Physics Material settings will cause a runtime error or unexpected behavior in Unity?
Attempts:
2 left
💡 Hint
Friction values cannot be negative.
✗ Incorrect
Negative friction values are invalid and cause unexpected behavior or errors in Unity physics.