Is this right…
For a test, I created a scene with 2 objects.
I have a cube that IS NOT set as a trigger with a script attached to it:
using UnityEngine;
using System.Collections;
public class triggerme : MonoBehaviour {
void OnTriggerEnter() {
print("triggered");
}
}
The other object is a capsule that IS set as a trigger with a rigidbody (no gravity, is kinematic). It has the following script to force it to move through the cube:
using UnityEngine;
using System.Collections;
public class moveme : MonoBehaviour {
void Update() {
transform.position = new Vector3(transform.position.x, transform.position.y, transform.position.z-.03f);
}
}
Am I supposed to be able to trigger the cube (not a trigger) with the capsule (is a trigger, but doesn’t have an attached trigger script)? I don’t want this to happen, but it is.