Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add options to set the location of the separate collision mesh or move to correct location #25

Open
adnanmunawar opened this issue Jul 13, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@adnanmunawar
Copy link
Member

When using the separate "collision mesh" option, AMBF will place the collision mesh origin at the origin of the Rigid Body (or Ghost Object). This can confuse when using the Blender ambf_addon, as the separate collision mesh can be moved around in Blender and thus the user may expect the collision in AMBF to follow suit, which it will not.

adnanmunawar added a commit that referenced this issue Jul 13, 2023
@adnanmunawar adnanmunawar added the enhancement New feature or request label Jul 13, 2023
@adnanmunawar
Copy link
Member Author

AMBF will set the origin of the collision mesh to be where the origin of the rigid body is. Therefore if one wants to offset the collision mesh, this has to be accomplished by offsetting the origin of the collision mesh. This commit implements two options which are discussed below.

  1. Move collision mesh to body origin:
    Clicking this button will move the collision mesh such that its origin coincides with the origin of the rigid body. This does not change the collision location but only shows what AMBF already implements and is meant to avoid confusion.

  2. Use current location of collision mesh:
    Clicking this button will keep the collision mesh wherever it is in the Blender scene, and change its origin to be where the rigid body is (internally this offsets the origin of the mesh by moving the vertices). This option may come in handy if one wants to move the collision mesh and have this reflected in AMBF.

ambf_setting_collision_mesh_location

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant