I didn't know that. If that is true, then indeed problem is solved far simplier.
---------- Post added at 21:48 ---------- Previous post was at 21:18 ----------
I did some tests. First spawn the building:
PHP Code:bld="Land_A_BuildingWIP" createvehicle (getposasl tr1);bld setdir (getdir player);
(some sleep)
then adapted to the surface with both methods:
1.PHP Code:bld setVectorUP (surfaceNormal [(getPosATL bld) select 0,(getPosATL bld) select 1]);
2.PHP Code:bld setPos (getpos bld);
As we can see both methods give acceptable effects, but slightly different on given slope. Another vector calculating method, or something else in my code makes a difference? As this is here for precision adjustment, this may be important difference.
HOME 


Reply With Quote
