Skip to content

Physics

Zly edited this page Mar 28, 2024 · 2 revisions

PhysicsConstraint doesn't work.

This info is based on my personal experience.

  • This is stupid, or I'm stupid, I don't know.

Cases:

  • When the driver doesn't have any collision enabled.
  • When the driver doesn't have any MESH for collision to even exist.

Relates to:

  • When you want a physical object to be constrained to a static one.

Solutions:

  • Enable collision.

SetConstraintreferenceFrame/Orientation/Position

OG Post

The reference frame is the desired position/orientation of the constraint relative to the component being constrained.

Example: ComponentB is constrained to ComponentA and hanging 200 units bellow it. You want to move the constraint to directly between them while keeping them the same distance apart. Frame one should be set to 0,0,-100 and frame two should be set to 0,0,100.