Hi! i’m having a trouble that only happens with my game on some computers, when some players open a door they will fall through the floor on the next room.
The doors on my game are just objects with a isTrigger box collider, and using function OnTriggerStay detects if a gameobject with a “Player” tag is on the ox collider, if the player presses a button the door changes the position of the player and then loads a new scene, i even set the “y” component of the movement vector of my character to zero so it’s not falling at that instant.
function OnTriggerStay(col : Collider)
{
if(col.tag == "Player")
{
if(Input.GetButtonDown("Action"))
{
if(Door)
{
if(Open)
{
col.transform.position = NewPosition + Vector3.up * 2;
col.GetComponent(Walk).MoveDirection.y = 0;
Application.LoadLevel(Nivel);
}
}
}
}
}
The problem is that on some computers the character falls through the ground on the scene that is loaded, but on some other computers and my own computer that doesn’t happens, some of my scenes have mesh colliders at the ground, don’t know if that has anything to do with that issue, i don’t know why that happens. Thanks in advance!!!