khotan 34 Posted April 7 Share Posted April 7 Hi, How to switch animation from TPS Character for walking, crouching, running, etc.. in C++ ? Quote Link to post Share on other sites
Josh 10,028 Posted April 7 Share Posted April 7 We need more info on what you are trying to do? Quote Link to post Share on other sites
khotan 34 Posted April 7 Author Share Posted April 7 Well, I need to all control my character for several animations as walking, running, jumping, climbing etc... . How to control and to rotate this characer at 90° to left or right? How to make a transition between walking to running and then back to walking by changing in C++ with interpolation if possible? What about the control for vertices from mesh and to make a expression on face of character ? I mean it all are all control behavior from character and making coding and controlled by C++ ? This link is what I am looking for as inspiration : Can you help me with example or make a pseudo-code to try and to understand it ? Thanks. Quote Link to post Share on other sites
Josh 10,028 Posted April 7 Share Posted April 7 The Entity::PlayAnimation() method will take care of most of that. It automatically handles transitions between animations: https://leadwerks.com/learn You can still rotate the whole entity while it is animating, the the animations will be played relative to the top-level entity in the model. Vertex morphing animations are not supported, mostly because nobody has separate models for facial expressions. But you can manually move the vertices around if you do have that ready to use. Quote Link to post Share on other sites
khotan 34 Posted April 7 Author Share Posted April 7 Thank you Josh ! Any support with Vertex morphing for later ? Quote Link to post Share on other sites
Josh 10,028 Posted April 7 Share Posted April 7 The glTF format does support vertex morphing animation, so I do plan to implement it using that. 1 Quote Link to post Share on other sites
khotan 34 Posted April 10 Author Share Posted April 10 Great thank you Josh ! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.