Jump to content

Question about FXModuleLookAtConstraint


Recommended Posts

I've seen this module in a few parts like the grappling device and some wheels, but I don't understand how it works. Could someone shed some light on this?

Here is an example

MODULE

{

name = FXModuleLookAtConstraint

CONSTRAINLOOKFX

{

rotatorsName = Piston1

targetName = Sleeve1

}

}

How would I set up the mesh to work with the module?

Thanks for your help. :)

Link to comment
Share on other sites

This module basically causes an object in the exported part to point at another object in the same part along its blue transform axis. I use it for pistons and similar things.

Each ConstrainLookFX defines one relationship. The rotatorName defines the object that will be rotated to point at the targetName (again, along the blue transform axis in Unity). Usually for a freely moving piston, two relationships are needed, one to cause the piston to point into the sleeve, and one to cause the sleeve to point into the piston:

MODULE

{

name = FXModuleLookAtConstraint

CONSTRAINLOOKFX

{

rotatorsName = Piston1

targetName = Sleeve1

}

CONSTRAINLOOKFX

{

rotatorsName = Sleeve1

targetName = Piston1

}

}

For good setup, you want to confirm 3 things

1) That the rotator object's blue transform axis is correctly specified for the pointing you want

2) That the pivot of the rotator object is located at the point where you want the rotation to occur

3) That the pivot of the target object is located where you want the rotator object to point.

Then, it's just a matter of exporting and ensuring the names are correct in the module :)

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...