keiwando / evolution

A sandbox game/simulator that demonstrates machine learning with evolutionary algorithms.
https://keiwan.itch.io/evolution
361 stars 56 forks source link

Muscle Question #9

Closed TheBarret closed 1 year ago

TheBarret commented 2 years ago

Is it possible to manually set the position of a muscle on the bone length?

keiwando commented 2 years ago

No, they are always connected to the bone center if that's what you're asking.

TheBarret commented 2 years ago

No, they are always connected to the bone center if that's what you're asking.

What file in the source code is part of that instruction? coz i would love to see where one can be placed on a muscle on the entire length of it.

keiwando commented 2 years ago

https://github.com/keiwando/evolution/blob/11d0b2c8ca1792a254ead122f593d291e99e433f/Assets/Scripts/Controllers/CreatureBuilder.cs#L274

This and other lines in that file that set the muscle start and end points based on the Bone.Center property.