Question by
speed439 · Mar 09, 2018 at 12:34 AM ·
c#jumpjumping objectstick
stick to roof of object when jumping
hello I have a problem that when jump my player stick to roof
as show in the pic I try alot og thing put didnot work for me I think the problem in my ground check problem `
private bool IsGrounded() //to chck it is groubdd or not
{
if (PlayerBody.velocity.y <= 0)
{
foreach (Transform point in GroundPoints)
{
Collider2D[] colliders = Physics2D.OverlapCircleAll(point.position, GroundRadius, WhatIsGround);
for (int i = 0, n = colliders.Length; i < n; i++)
{
if (colliders[i].gameObject != gameObject)
{
return true;
}
}
}
}
so Is the problem in that code or what?????
jump.png
(12.6 kB)
Comment
Your answer
Follow this Question
Related Questions
Jumping only once (2D) 1 Answer
Problems with jumping in Doodle Jump like game 2 Answers
How i make a ball jump where i point with my mouse?[3D] 0 Answers
Jump OnCollision() Script not working 0 Answers
Player does not jump? 0 Answers