Unity cannot collide after adding a mesh collision to an object. It was later found that the properties of the component Is Triggle were ticked off so that normal collisions could occur.
// for the game object, add collision
GameObject blank;
private float moveSpeed = 1.0f;
if (! blank.GetComponent< MeshCollider> ())
{
blank. AddComponent< MeshCollider> (a);
blank. GetComponent< MeshCollider> ().convex = true;
span>
} span> p>
// mobile game object
blank.transform.Translate(Vector3.right * Time.deltaTime * speed);
after the normal work.
Read More:
- ORA-04098: trigger ‘SYS.GGS_DDL_TRIGGER_BEFORE’ is invalid and failed re-validation
- [QT] solve the problem that the trigger of QPushButton cannot trigger setvisible
- Animation event has no receiver in unity animation
- Notes on unity project_ Unity webplayer failed to update unity web player
- Unity-failed to update unity web player
- Unity install ilruntime plug-in [novice installation tutorial] (supported by unity2018 and later versions)
- [Solved] VUE3.0 Warning: Added non-passive event listener to a scroll-blocking ‘mousewheel‘ event如何解决
- Unity3d open prompt failed to initialize unity graphic
- 【Unity 3D】Because you are not a member of this project this build will not access Unity services.
- Create game scene in unity_ Creating a beat em up game in unity
- After unity connects with androidstudio, unity packages APK with an error: commandinvocationfailure: failed to re package resources
- ClobberError: The package ‘xxx‘ cannot be installed due to a path collision for ‘xx‘ This path alre
- Resolve the problem of “event ID 4107” or “event ID 11” errors recorded in the application logs of windows and windows server
- Springboot integrates quartz timed task trigger_ State error resolution
- Call unity with lightmap and light probes in shader
- Unity Component.isActiveAndEnabled Analysis of exact meaning
- The solution of “failed to load il2cpp” in Android package launched by unity
- Java uses the same event listener for the same type of component
- [Fixed] Unity error CS1704: An assembly with the same name `UnityEngine.UI’ has already been imported
- How to Solve Unity Package Android Project Error