- Normals
- UVs
- Create normal (
N
) attribute if missing - Create
tangentu
attribute (preferably MikkT) - Create matrix3 from N and tangentu
- Convert matrix3 to
orient
attribute (quaternion)
//check the distance from the rock to the waypoint1 | |
float distanceToWayPt1 = distance(@P,v@wayPoint1); | |
f@dist1 = distanceToWayPt1; | |
//check the distance from the rock to waypoint2 | |
float distanceToWayPt2 = distance(@P,v@wayPoint2); | |
// Phase 0 | |
// If: Start Frame has been reached | |
// AND the rock is further than 0.5 units from waypoint 1 |