I whant that my player and ncps start to slide when they are on a Model, Terrain or block that has an angle of 60. My code looks like this, but it dosnt work;
There is no reply because you did not post the important code, your movement/ gravity(!) code. Btw that's not how you would like to code it, I guess your z_dist is set every frame by your movement code, that means your event will have no effect. What is my.z_dist supposed to be anyway when you declare z_dist as a global vector? (I guess you just copied my example code from "Neigung im Raum" and modified it?!)
z_dist = c_trace(my.x,vector(my.x,my.y,my.z-200),IGNORE_ME | IGNORE_PASSABLE)+my.min_z; if(trace_hit && normal.z > 0.35) { // play with this value place your sliding code here }
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual