0
0
Unityframework~20 mins

Physics materials (friction, bounce) in Unity - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Physics Material Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Predict Output
intermediate
2: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);
    }
}
A0.7
B0.5
C1.0
D0.0
Attempts:
2 left
💡 Hint
Remember dynamic friction is different from static friction.
Predict Output
intermediate
2: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?
AThe ball will bounce back with the same energy it hit with.
BThe ball will not bounce at all.
CThe ball will bounce but lose half its energy.
DThe ball will stick to the surface.
Attempts:
2 left
💡 Hint
Bounciness of 1 means no energy loss on bounce.
Predict Output
advanced
2: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?
A1.0
B0.6
C0.8
D0.32
Attempts:
2 left
💡 Hint
Multiply means multiply the two friction values.
Predict Output
advanced
2: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?
A1.0
B0.3
C0.7
D0.5
Attempts:
2 left
💡 Hint
Maximum means the higher bounce value is used.
🧠 Conceptual
expert
2: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?
ASetting dynamic friction to -0.1
BSetting friction combine mode to 'Average' and bounciness to 0.5
CSetting bounciness to 1.0 and friction combine to 'Multiply'
DSetting static friction to 0.0 and bounciness to 0.0
Attempts:
2 left
💡 Hint
Friction values cannot be negative.