Jump to content

Create Attribute Facing A Direction [SOLVED]

Recommended Posts

Posted (edited)

Just trying some stuff out while I'm learning.. I've managed to have control over where a new attribute is being created, although it's currently using a bounding box set to Y position only.

How would I go about changing this sort of thing from just a Y direction to having control over a vector angle?

hip file attached



Edited by GlennimusPrime

Share this post

Link to post
Share on other sites

You can "compare" the normals with an arbitrary angle with dot product.
the dot product gives you a number between -1 and 1: from "opposite angles" (=-1) to "parallel angles" (=1)

something like this:




  • Like 3

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