Librarian Posted April 26, 2021 Share Posted April 26, 2021 (edited) Best approach to make something rolling on Spline with provided vex code and file inside some Structure ..Thanx ...FOund some pictures and codes Asia Forums ...HOW?? float theta = atan2(v@N.y, sqrt(v@N.x * v@N.x + v@N.z * v@N.z)); float gravity = (9.8 / float(60 * 60)) * -1; f@speed += gravity * sin(theta); float friction = 1; f@speed *= friction; f@curvePos += f@speed; float curveLength = primintrinsic(1, "measuredperimeter", 0); float ratio = (f@curvePos / curveLength) % 1; vector2 posuv = set(ratio, 0); @P = primuv(1, "P", 0, posuv); @N = primuv(1, "N", 0, posuv); @up = primuv(1, "up", 0, posuv); Roller.hiplc Edited April 26, 2021 by Librarian 4 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.