-
Spring box constraint with source code
Posted on 30 March 2009 Neill 4 commentsSpring box constraint for MotionBuilder
Value parameters
Stiff – stiffness of the springs (the higher the value, the more rigid) Hardness is the reaction and the effect of the spring from which she draws a point in the original position.
Damp – the size of fading fluctuations spring (the more, the less hesitation commit spring) The essence of this parameter under a big question, in practice, it gives some the wrong result, so sometimes fading fluctuations can be regarded as a constant value of 0.10 for example
Length – the length of the spring (should be set to 0) A value of zero reference position is the point of going, otherwise the spring will be busy trying to position a specified distance from moving
Mass – the mass. The more weight the more difficult it is to move the spring with a space or vice versa to return it to its original position.
Friction – force of resistance that allows “stifle” the dynamics of the spring and return it to its original position. The higher the number the less the effect of spring ”
Pos – input position
Result – output positionDownload
MotionBuilder 2010 32bit - boxSpring2010_32
MotionBuilder 2009 32bit – boxSpring
MotionBuilder Animation, Dynamics, Math, Plugin
boxspring source code for VisualStudio 20084 Responses to “Spring box constraint with source code”
-
Green-Man 30 March 2009 at 7:25 PM
Уау, клевая штука! Я когда-ты пытался сообразить такое на основе Relation, но как-то зашел в тупик и бросил это дело.
Спасибо за плагин. -
Neill 30 March 2009 at 7:37 PM
как говорится “на здоровье”. Буду рад любым найденным багам или идеям по развитию.
-
Green-Man 30 March 2009 at 10:12 PM
А можно посмотреть на реализацию этого в коде? (C++, как я понимаю?)
Или это совсем не скромная просьба?
-
Посмотреть можно, выложил исходный код плагина под 2008ю студию. Сама пружина представляет собой реализацию алгоритма Эйлера и конечно для большей устойчивости хорошо было бы дописать Рунга-Кутта, но на это нет пока что времени…
Leave a Reply
You must be logged in to post a comment.
-

English
Russian
Recent Comments