BasicPlayerController - slippery, strange behavior [Solved]

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Re: BasicPlayerController - slippery, strange behavior [Solv

Postby Julio Jerez » Sun Jun 30, 2019 12:02 pm

Ok I committed the updated controller.
there is a new function IsAirBorn, if you play and you hit the space bar, The player will jump only if it has a contact support.

I also added a merry goround so that you can check how the player inherit the surface velocity of the body is standing on.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: BasicPlayerController - slippery, strange behavior [Solv

Postby rystills » Sun Jun 30, 2019 3:19 pm

Excellent, I'll update this afternoon and try it out! Updating my PlayerController to use the new functions should be pretty simple.
rystills
 
Posts: 17
Joined: Wed Jun 12, 2019 2:01 pm

Re: BasicPlayerController - slippery, strange behavior [Solv

Postby rystills » Sun Jun 30, 2019 6:13 pm

I just tested your recent changes, and I believe there's a minor bug. I don't think the airborn check is taking contact normal into account, because touching the wall allows the player to continually jump despite not being grounded.
rystills
 
Posts: 17
Joined: Wed Jun 12, 2019 2:01 pm

Re: BasicPlayerController - slippery, strange behavior [Solv

Postby Julio Jerez » Sun Jun 30, 2019 8:07 pm

this I not a bug, this is by design but I suppose there could by another player state function that only triggers when player is standing on traction contact point.

I added IsOnFloor() and I changed the demo to use that state instead, and yes is much nicer.
with IsAirBorn it flights to infinity and beyond when the player is touching a wall.
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Previous

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 15 guests

cron