|
Post by ftlmars on Aug 31, 2016 7:42:48 GMT
Current movement mechanics works fine is your actors are tall but no wide like vehicles , so is it possible to set vehicles
angle state as angle between height surface and land surface?
|
|
|
Post by kramar on Aug 31, 2016 14:25:10 GMT
You would probably need to do it yourself.
One way woudl be to query the terrain at all the points the actor is touching (i.e. 4 wheels) and then use physics or compute the actor's orientation yourself.
|
|
|
Post by ftlmars on Aug 31, 2016 14:45:36 GMT
You would probably need to do it yourself. One way woudl be to query the terrain at all the points the actor is touching (i.e. 4 wheels) and then use physics or compute the actor's orientation yourself. this actually was my idea originally.
|
|
|
Post by ftlmars on Aug 31, 2016 15:57:56 GMT
it appears that all terrain have same normals even if this is a hill on plains and without correct terrain mesh normals there is no way of doing this
|
|
|
Post by khash on Sept 17, 2016 15:16:49 GMT
Lets say you have 4 points: A, B, C, D in 3d space. and it looks like that form the top: A -- B | / | | / | C----D produce two triangles: A, B, C and B, C, D 4 points never are well aligned on teh ground if the ground is not flat, so the best way is to average those two normals or use some system to chosse beter looking result. to calulate normal caluculate two vectors: AB = B - A; AC = C - A; anc calulate crossproduct of AB and AC. Result is normal of the triangle A,B,C. Do the same for the other triangle and you are at home Edit: note my beautifull drawn ABCD squalre looks like s... due to forum correction, sorry
|
|