Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inverse Kinematics #1

Open
wants to merge 39 commits into
base: master
Choose a base branch
from
Open

Inverse Kinematics #1

wants to merge 39 commits into from

Conversation

suVrik
Copy link
Owner

@suVrik suVrik commented Sep 20, 2021

Video: https://www.youtube.com/watch?v=UirC1p3gE0U
Build: https://drive.google.com/file/d/1fPxQNy_TIVM05jkdkwoH6GOcYQn6dI6l/view?usp=sharing

Integrated PhysX (with boxes and height fields).
Added blend trees and motion graphs.
Added inverse kinematics (for 2 joints).
Implemented a little gameplay demo that uses all of these features.

Rename container to prefab to match the industry term and to avoid confusion with core's "containers"
Such as:
```
[ 0, 0 ]: 1,
[ 0, 1 ]: 2,
[ 1, 0 ]: 3,
[ 1, 1 ]: 4
```
Remove jump animations
Add blend trees
Add height fields
Add motion graph
Add prefabs
Base class for box and height field primitives
Base class for box and capsule controllers
Manager that loads and unloads height fields from disk
May be passed to prefab manager to allow loading physics primitives from prefabs
Plays loop animation without any parametrization
Useful for environment animations
Manager that loads and unloads blend trees from disk
Manager that loads and unloads motion graphs from disk

m_geometry_primitive_offset = lerp(m_geometry_primitive_offset, geometry_primitive_offset, 0.1f);

// TODO: Use linear rather than exponetial to work better on different framerate.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, you can easily modify exponential to be framerate-independent
http://www.viniciusgraciano.com/blog/exponential-smoothing/

Copy link
Owner Author

@suVrik suVrik Sep 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, I'm aware of that. The comment is indeed misleading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants