Jump to content

TSShapeConstructor to adjust feet to ground


retron

Recommended Posts

I've been trying to find a way to dynamically adjust the characters feet to the ground, by casting a ray from his feet bone. I'm successfully able to do that, but then, i can't seem to use TSShapeConstructor::setNodeTransform to change the bone position. According to the docs, it should allow me to change the base transform of the bone.

Link to comment
Share on other sites

Dynamically, as in during the game running? So like leg IK?


In that case, the ShapeConstructor methods wouldn't work. That's for configuring the shape to your needs before spawning. Once it's created, the ShapeConstructor methods don't affect it outside of reloading.


To manually change bone positions in code during runtime, you'd need to look into the animation code in ShapeInstance, and the HandsOff mask for bones. That lets the bones be animated by code rather than animation sequences.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...