Skip to content

ikdev branch #2

@PicassoCT

Description

@PicassoCT

Goal:
Allow for units to use ik animation. Ik-Animations allow for a goal to be set, and the limbs of a unit to automaticall resolve that and reach for that goal. This is heavily used in many games, where the character interacts realistically interacts with its environment.

What happened so far:
A Sub-Lua Api was specified to allow for setting up of ik-chains in a Unit.
This was tested in a single player game (journeywar) with a test unit.
The tests showed that there are errors in my math-conversion and that my implementation is overly complex.
Targets from now on are only set in unit space. All correcting against unit turns etc, must happen in lua.

Whats missing:
Checking wether the Eigenlibrary synced. (If i remember someone in spring actually ported the library already - and its mostly templates.

Ideas for the final approach:

Simplify the code.
Clean up the code.
Bring it up to springs code-standards(Its somewhat hacky/newbish)
Test and write a lua unitscript implementation for world positions to set.
Known Problem is, that this will be heavily performance intensive, and thus should only be used by hero units / single event units (Giant Mechas, etc.)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions