![]() |
easy way to find the normal vector of the ladder
Code:
g_engfuncs.pfnTraceModel(m_vecWptOrigin, VecBModelOrigin(pLadder), point_hull, pLadder, &tr); pfnTraceModel() means a tracehull which is only blocked by the specified entity ("pLadder"). |
Re: easy way to find the normal vector of the ladder
This is interesting indeed, although I never had problems determining the normal vector of a ladder using a normal TraceLine as far as I remember ???
|
Re: easy way to find the normal vector of the ladder
if you are using a normal traceline, it's usually not the ladder but the wall behind the ladder that blocks the traceline. and sometimes you will have trouble with this in ladders which don't have a wall behind it (like that one in cs_assault).
|
Re: easy way to find the normal vector of the ladder
but if you have it like that it'll only hit the ladder and what if it hits the ladder from the wrong side?
|
Re: easy way to find the normal vector of the ladder
the start position is the waypoint origin, which is always at the right side unless the waypointer is bad one :)
|
Re: easy way to find the normal vector of the ladder
well if that were true then there isn't any problem using traceline even if it hit the thing in the back..
|
Re: easy way to find the normal vector of the ladder
wouldn't a tracehull find the ladder?
|
Re: easy way to find the normal vector of the ladder
Quote:
|
Re: easy way to find the normal vector of the ladder
umm yes, my bad.. TraceHull, that's what I meant in my post :)
|
All times are GMT +2. The time now is 12:11. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.