detecting collisions
Revln9
Posts: 4
Hi , i have two questions.
i'm planning to write a script that can help avoid poking through something when posing a character (a kind of basic physics engine)
is there a method to detect collision on and between characters , how the smoothing modifier knows what part of the body it should morph ?
is there a callback (signal?) that fires while or after you change the position of an object or a character on the scene?
if you have some advices and some examples , it will be helpful , thanks
Comments
There isn't, as far as I know, a method available to scripting to detect collision - the Smoothing Modifier and dForce use their own (complied) code as far as I can tell.
Yes, there are signals for changed poses, though I suspect you are really trying more than a script could handle easily and might be better off looking at the SDK.
Hi Richard , i'll take a look at it , in fact i was planning to do something "small" just push a button to correct some poke through , but since there's no 'shortcut' for this i don't think i have the time/dedication to dig deep in the sdk because when you reach that far you should go for a real physics engine like physx or bullet , but anyway thanks
I am posting the first draft if someone want to help , not the best code but good enough to start with , there's one problem the sensitivity variable needs to be re adjusted when the collision involves the hip or the chest , need to invistigate more about this , richard if you have some suggestions , please feel free to comment