Julio Jerez wrote:To add a funtionality is a three steps process.
1- you add a c sharp interface in unity for the feature you want to add.
say adding the kinematic joint.
2- you write a c++/header class that glue the Unity interface and the class in newton that support that feature
3-you add the header file to the swig script. file newton.i
then you compile the plugin and swig will generate the wrapper that turn the class into a managed c++ objects that can be called from c chaps.
file newton_wrap.cxx
I followed these steps and intergrated the class of dCustomKinematicController into Unity this afternoon, and it worked! But there is a question denoted as Q2.
Q2: i called the function described in the image appended just once, but the body will move back and forth for quite a few seconds before settle down. I had tried to "SetPickMode" but got no better.
You could see the appendix for details:
function called: https://drive.google.com/open?id=1WPmhO ... vFuCw4lYM_
components in Unity: https://drive.google.com/open?id=1LJ3OR ... 9xBNPSzqFj
end result: https://youtu.be/K_0G_WuPCMg