New answers tagged

0

I figured it out. Since lines can be seen as equations, you can detect if the player(or whatever)'s rise is equal(or similar) to the rise of the line. To convert a line to a segment, just make pygame check to see if the player is colliding with a rect that's two corners are the start and end points of the line. Make sure the rect has a positive side though, ...


0

You need to get motion path node name from curve shape. import maya.cmds as cmd shape = cmd.listRelatives( 'curve3' ) mPath = cmd.listConnections( shape, type = 'motionPath') print mPath



Top 50 recent answers are included