MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / InitializeGoal

Method InitializeGoal

GTE/Graphics/IKController.cpp:22–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22void IKController::InitializeGoal(size_t g, std::shared_ptr<Spatial> const& target,
23 std::shared_ptr<Spatial> const& effector, float weight)
24{
25 LogAssert(g < mGoals.size(), "Invalid index.");
26 mGoals[g].target = target.get();
27 mGoals[g].effector = effector.get();
28 mGoals[g].weight = weight;
29}
30
31void IKController::InitializeJoint(size_t j, std::shared_ptr<Spatial> const& object,
32 std::vector<size_t> const& goalIndices)

Callers 1

CreateSceneMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected