Last active
November 6, 2019 09:19
-
-
Save gordielachance/5eadcc60b7bb4b25f8276d7df14980d7 to your computer and use it in GitHub Desktop.
AE expression : check for backfacing (2D layer)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var rot = transform.xRotation; | |
var flipAngle = 180; | |
var flips = Math.round(rot / flipAngle); | |
var isFront = (flips%2) ? false : true; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment