mindboggles Posted February 7, 2016 Share Posted February 7, 2016 Now that I'm implementing ragdolling on all my skeletons I have a few that might end up on any side. Most creatures by nature of their design will either end up on their right or left side (most four legged creatures) and you use IsLeftUp for the animation condition check, while bipeds you would use IsFacingUp. I'm wondering if both functions will return correct values ( I suspect they will)? If so I will need to mess around with condition testing for each of the animations I create for getting up after knockdowns. Link to comment Share on other sites More sharing options...
mindboggles Posted February 14, 2016 Author Share Posted February 14, 2016 No answers? Guess I could of explained the issue better. If I had a cow (yeah I have a cow from time to time) and it ragdolled most likely it would end up on one side or the other and I could just test using IsLeftUp. If it was a Biped then the ragdoll body is most likely going to come to rest on it's back or front and IsFacingUp works. In some skeletons I have the creatures end up in a state that I just don't know what either of those conditions will return, since my creatures basically can end up in a situation like the cow landing on it's belly with all four legs splayed out, or the Biped still vertical but doing the front splits.This wouldn't be a problem if they ended up doing that consistently since I could just check the knocked state and have a single get back up animation, but from time to time they are completely inverted and it would be like the cow is on it's back with legs splayed or the Biped is on it's head vertical still doing the splits. Can anyone shed any more info on these 2 conditions, like is there an angle range where they will only return true? Or a condition I can test for if the creature ends up completely inverted? Link to comment Share on other sites More sharing options...
Deleted5865522User Posted February 14, 2016 Share Posted February 14, 2016 (edited) Hey mindboggles,I don't have enough information on the angles, but here is all I know:For recover idle animations from knocked-down state:IsLeftUp will return 1 if the quadruped's left side is facing upward. Else, 0, if their right side is facing up.IsFacingUp is used to determine whether a biped is on their back or on their stomach, for instance. If they are on their back during a knockdown state, or looking up at the sky while knocked down, it will return a value of 1. Else, or 0, if they are facing the ground or on their stomach.These more or less rely on angles of 180 degrees from the specific body part of the creature/actor. "IsLeftUp" considers the left arm's angle (When the quadruped is on it's side) while "IsFacingUp" takes into consideration the view/head angle of the biped.Forgive me if I was incoherent, I'm really tired.Cheers :smile: Edited February 14, 2016 by Guest Link to comment Share on other sites More sharing options...
Recommended Posts