Jump to content
j00ey

Cone Twist Constraint Relationship - Motor Target per constraint

Recommended Posts

Hi

I'm having a problem with a cone twist constraint network. I'm setting all the axes per constraint in SOPs  (goal_twist_axis, constrained_twist_axis etc) and I wanted to set the motor_target values inside a SOP solver in my DOP network but it's just not doing anything. I can set motor_enabled and that works fine.

I've tried v@motor_target, v@motor_targetr, f@motor_targetry, nothing gets picked up. I can't find anything in the docs or online... Any ideas?

Share this post


Link to post
Share on other sites

cone twist constraint relationships don't support motors.  I think you might have to combine them with hard constraints, because those do support angular motors.

 

It's hard to say without knowing what type of result your looking to achieve.

Share this post


Link to post
Share on other sites

Well I'm actually not trying to achieve anything in particular, I'm learning some RBD stuff, specifically constraints and was looking into the cone twist.

I think it may be a new thing but it does now have a motor capability and it does work globally [to be honest I'm still trying to understand what it's really doing] but per-constraint doesn't. I just copied the name from the related param field in the same way you can find the names like goal_twist_axis etc and indeed i@motor_enabled works but I couldn't work out the motor_target.

conetwist.jpg

Share this post


Link to post
Share on other sites

If you look in the details view, the parameter values are actually converted into a quaternion. So, you'll need a quaternion primitive attribute named 'motor_target'.

Share this post


Link to post
Share on other sites

Ah thanks - that's interesting, I'll try that.

But on initial inspection, my goal_twist_angle etc attribs aren't converted to quaternion. Where are you seeing that happening?

Share this post


Link to post
Share on other sites

It's only the motor target parameter that is converted from euler angles to a quaternion.

Share this post


Link to post
Share on other sites

I see - I just tried setting it with a quaternion and it's doing something! Thanks very much for the pointer.

Where do you see that in the spreadsheet though to be able to tell you have to set it with a quaternion instead of a vector?

Share this post


Link to post
Share on other sites

You need to locate the cone twist constraint's data in the details view. In your case, it would be underneath the constraint network

motor_details_view.png

Share this post


Link to post
Share on other sites

Ah yes thanks!

I was looking at the Geometry but of course until you set a value manually, there's nothing there.

Much appreciated.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×