Why am I flying?



Users browsing this forum: No registered users and 0 guests

Next topic
Previous topic
Post new topic Reply to topic  NeoAxis Forum Index » General » Bugs
Search for:
Author Message
Commercial License
Commercial License
User avatar

Joined: Mon Jan 05, 2009
Posts: 795
Location: Belgrade
PostPosted: Mon Aug 24, 2009 9:19 pm Post subject: Why am I flying?
Bottom of Page Back to top
Picture says it all. If IsOnGround() is false i play the fly animation (for the fall). When i jump on some objects like the urn or the fence, or i jump into barell engine still recognize it as flying (not on the ground). How do I fix this?


flyflyfly.jpg

_________________
Updated GridPathFindSystem
Smarter AI
Arilienta (Our NA Game)
 
 Profile  
Commercial License
Commercial License
User avatar

Joined: Tue Sep 16, 2008
Posts: 1264
Location: Imatra
Country: Finland (fi)
PostPosted: Mon Aug 24, 2009 9:36 pm 
Bottom of Page Back to top
Me thinks the objects are too small to fully block the main body and thus giving false return.

You could do a double check.
Check IsOnGround() and player's vertical velocity.

Objects usually tend to gain altitude rapidly, or lose it.

 
 Profile  
Commercial License
Commercial License
User avatar

Joined: Mon Jan 05, 2009
Posts: 795
Location: Belgrade
PostPosted: Mon Aug 24, 2009 10:08 pm 
Bottom of Page Back to top
Yeah i was checking the linear velocity value in the console, and it was like 0.01 and building up constantly. I'll try volume cast instead of default ray cast maybe it will help.

_________________
Updated GridPathFindSystem
Smarter AI
Arilienta (Our NA Game)
 
 Profile  

Joined: Mon Jul 14, 2008
Posts: 201
Location: the netherlands
PostPosted: Mon Aug 24, 2009 10:14 pm 
Bottom of Page Back to top
maybe the ray trace misses the urn

 
 Profile  
Commercial License
Commercial License
User avatar

Joined: Mon Jan 05, 2009
Posts: 795
Location: Belgrade
PostPosted: Mon Aug 24, 2009 10:22 pm 
Bottom of Page Back to top
It seems so, but this is also happening if i get stuck in a barrel cause character is too fat. As i said i'll use the volume cast and report the results later cause my PC is overheated atm.

_________________
Updated GridPathFindSystem
Smarter AI
Arilienta (Our NA Game)
 
 Profile  
Moderator
Moderator
User avatar

Joined: Wed Nov 28, 2007
Posts: 1526
Location: Vancouver, British Columbia
Country: Canada (ca)
PostPosted: Mon Aug 24, 2009 10:36 pm 
Bottom of Page Back to top
Maybe collision is on in the attached mesh itself. That can cause some weird fuckery.

_________________
I'm NOT paid or work for NeoAxis. I only help moderate these boards. My opinions are not the opinions of NeoAxis Group LTD.
 
 Profile  
Commercial License
Commercial License
User avatar

Joined: Mon Jan 05, 2009
Posts: 795
Location: Belgrade
PostPosted: Mon Aug 24, 2009 10:46 pm 
Bottom of Page Back to top
^ No its not :) If it was weird fuckery would happen all the time (this is just for some special cases and i don't want them to happen) :D

_________________
Updated GridPathFindSystem
Smarter AI
Arilienta (Our NA Game)
 
 Profile  
Indie License
Indie License

Joined: Tue Jul 10, 2007
Posts: 389
PostPosted: Tue Aug 25, 2009 9:31 am 
Bottom of Page Back to top
There seems to be a kind of "constant" collision, as if the body of the character was colliding constantly. Is it inside some hidden geometry ?

_________________
Freeman
 
 Profile  
Commercial License
Commercial License
User avatar

Joined: Mon Jan 05, 2009
Posts: 795
Location: Belgrade
PostPosted: Tue Aug 25, 2009 10:35 am 
Bottom of Page Back to top
No it is not. Since i couldn't jump on urn anymore (it catapults me now), i jumped into a barred and fat capsule got stuck (thick one isn't hitting the ground). Length of ray cast result is 8 (since of physics model of the barrel) so it detects it. Either it isn't adding force accurately or there is something else going on.

_________________
Updated GridPathFindSystem
Smarter AI
Arilienta (Our NA Game)
 
 Profile  
Moderator
Moderator
User avatar

Joined: Wed Nov 28, 2007
Posts: 1526
Location: Vancouver, British Columbia
Country: Canada (ca)
PostPosted: Tue Aug 25, 2009 2:38 pm 
Bottom of Page Back to top
Well you keep saying "no it is not" like you are so sure, but then wonder if "Something else is going on"

The suggestion I gave you was a solid one. Did you at least check to see if the attached mesh has collision enabled? Is gravity turned off? If it's nothing in the resource editor you got some bad code floating around making your guy get stuck.

_________________
I'm NOT paid or work for NeoAxis. I only help moderate these boards. My opinions are not the opinions of NeoAxis Group LTD.
 
 Profile  
Commercial License
Commercial License
User avatar

Joined: Mon Jan 05, 2009
Posts: 795
Location: Belgrade
PostPosted: Tue Aug 25, 2009 4:58 pm 
Bottom of Page Back to top
I'm saying it cause i am so sure. Character has no collision except character code capsule. Here you can see the picture that rabbit is flying too. Default NA didn't change a thing in RE or code (except adding barrel duh). Barrel has no collision on meshes just physics. Here i attached the rar with the barrel. Extract it over Data folder and go to PhysicsDemo map. Barrel is in the corner so jump in it, turn the dynamic physics debug draw on and you'll see it. This also happens with various objects that don't have dynamic physics (like the urn).

P.S. You cannot use this barrel in you projects :P


Data.rar [387.14 KiB]
Downloaded 113 times
rabbitflyyay.jpg

_________________
Updated GridPathFindSystem
Smarter AI
Arilienta (Our NA Game)
 
 Profile  

Joined: Mon Jul 14, 2008
Posts: 201
Location: the netherlands
PostPosted: Tue Aug 25, 2009 5:42 pm 
Bottom of Page Back to top
urn has a hole in it? you probably saw that but just in case :D

 
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  NeoAxis Forum Index » General » Bugs

Jump to:  

Next topic
Previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


All times are UTC




Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group