Unity Ninja Unity 3D Forum
To have exclusive access to all downloads, recourses and links within this forum, a free registered account is required. Just a heads up Wink

You are not connected. Please login or register

Unity Ninja Unity 3D Forum » HELP » Help (General) » The ground must falls after 5 seconds

The ground must falls after 5 seconds

View previous topic View next topic Go down  Message [Page 1 of 1]

1 The ground must falls after 5 seconds on Wed Nov 05, 2014 2:11 pm

Radeon


Member [Lv. 2]
Member [Lv. 2]
When I pass on to a ground with the Character player , the ground must falls after 5 seconds but this script created by me does not work how can I fix it?

---------------



Last edited by Radeon on Tue Nov 11, 2014 6:46 am; edited 1 time in total

View user profile

2 Re: The ground must falls after 5 seconds on Wed Nov 05, 2014 8:05 pm

So is this a custom script for your terrain behaviors, and are you sure it's not your player that is falling, not the terrain itself? Because your issue is most likely a collider issue. Please explain with more detail..

View user profile http://www.youtube.com/user/misterninjaboy

3 Re: The ground must falls after 5 seconds on Thu Nov 06, 2014 12:58 am

Radeon


Member [Lv. 2]
Member [Lv. 2]
when I go with the player character on the ground or land ,  the land fall after 5 seconds but the player character falls immediately after 1 second

View user profile

4 Re: The ground must falls after 5 seconds on Thu Nov 06, 2014 2:36 am

Radeon


Member [Lv. 2]
Member [Lv. 2]
...........

View user profile

5 Re: The ground must falls after 5 seconds on Mon Nov 10, 2014 9:00 am

Ninjaboy follower


Member [Lv. 3]
Member [Lv. 3]
How about this Vector3.MoveTowards(transform.position, Vector3.down, 10 * Time.delatTime); ??

View user profile

6 Re: The ground must falls after 5 seconds on Fri Nov 21, 2014 4:49 pm

DeveloperLuke


Moderator
Moderator
or you can add a rigidbody to the object so it falls down.
Code:
function OnCollisionEnter(other : Collision) {
if(other.collider.tag == "Player") {
gameObject.AddComponent(Rigidbody);
}
}

View user profile

7 Re: The ground must falls after 5 seconds on Fri Nov 21, 2014 4:50 pm

DeveloperLuke


Moderator
Moderator
Or you can add a rigidbody to the object so it falls down.
Code:
function OnCollisionEnter(other : Collision) {
if(other.collider.tag == "Player") {
yield WaitForSeconds(5.0);
gameObject.AddComponent(Rigidbody);
}
}

View user profile

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum