Timeline for How to correct surface normal for translated object
Current License: CC BY-SA 4.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 20, 2019 at 17:58 | history | rollback | Robert Gützkow |
Rollback to Revision 2
|
|
Oct 20, 2019 at 17:54 | comment | added | Todd McIntosh | Thanks @rjg for the extra effort in explaining the additional rotational bias I was asking about. The addon was not necessary for me personally, but maybe it will help someone else in the future. Cheers | |
Oct 20, 2019 at 17:43 | history | edited | Todd McIntosh | CC BY-SA 4.0 |
added 176 characters in body
|
Oct 20, 2019 at 14:37 | comment | added | brockmann | Awesome, thanks too @rjg | |
Oct 20, 2019 at 13:35 | comment | added | Robert Gützkow | @ToddMcIntosh I've updated my answer, it now includes an add-on. You can enable Local Axis and rotate the cone object in order to adjust the axis. Instead of sending me the offered money, please consider donating it to one of the listed organisations. | |
Oct 20, 2019 at 13:01 | history | edited | Robert Gützkow | CC BY-SA 4.0 |
More detailed explanation and add-on code
|
Oct 20, 2019 at 0:59 | vote | accept | Todd McIntosh | ||
Oct 20, 2019 at 0:59 | comment | added | Todd McIntosh | As a bonus question, if I wanted to have the ability to bias the rotation of the cones towards the global Z axis by a small amount (say 0-15 degrees), what would be the additional code to do that? I'm currently doing it with a Copy Rotation constraint on each cone object that references an empty above the sphere, but I'm sure there's a cleaner way of doing it in code. | |
Oct 20, 2019 at 0:57 | comment | added | Todd McIntosh | Ok, after testing it out, this definitely was the answer! In addition to your changes, I also had to change the line PlaceParticle(emitter, src_obj, adjPoints) to PlaceParticle(emitter, src_obj, p) as I was incorrectly multiplying p by the emitter.world_matrix value. After both changes, the script works great! Thanks. Please send your paypal email address and I'll send the bounty. | |
Oct 20, 2019 at 0:33 | comment | added | Todd McIntosh | Also, I didn't mention that in the file, the origin point of the cones is at the tip, so I would use Z instead of -Z in the surfaceNormal.to_track_quat call as I am doing. | |
Oct 19, 2019 at 23:24 | comment | added | Robert Gützkow | I will update my answer tomorrow since it's late at night, with a more detailed explanation about the rotation. | |
Oct 19, 2019 at 23:23 | history | answered | Robert Gützkow | CC BY-SA 4.0 |