How do I find out the angle of a wall or block? Like if my car is riding up hill and I want the car to tilt back or if one of the computer players is next to a wall I want his pan to be parallel to the wall. How do i do this?
Re: Finding the angle of a wall#12928 06/18/0303:5506/18/0303:55
i know thats what it said in the manual but does that mean thta the vector holds the angle of the object that the trace event hit? Can you give me an example of what the normal would hold?
Re: Finding the angle of a wall#12935 06/19/0323:3106/19/0323:31
Example: If you send a trace toward the ground and the ground is flat (parallel with x and y axes) The normal from the trace would be the vector (0,0,1)... You can use the vec_to_angle command to compute the tilt and pan angles from the normal vector. This is my understanding... Please correct me if this is wrong.
create an objekt with the MDLeditor. OPTIONS -> SHOW NORMALS -> ALL Look at the objekts triangles. On this faces are blue/white lines, which are "standing" on an triangle. This lines are called "normals"