|
Re: Bumping Your Head Physics
[Re: Superku]
#384317
10/01/11 22:31
10/01/11 22:31
|
Joined: Mar 2009
Posts: 186
Valdsator
OP
Member
|
OP
Member
Joined: Mar 2009
Posts: 186
|
c_trace(my.x,vector(my.x,my.y,my.z-200),IGNORE_ME | IGNORE_PASSABLE); if(trace_hit && target.z > my.z+my.min_z-10) { I'm on the ground, respectively floating 10 quants or less above the ground. Some kind of a height buffer is usually a good idea to avoid the computation of unnecessary collisions. my.speed_z = 0; } Ah, I was thinking I should use c_trace, but was once again scared away by the "slow" speed. Thank you, yet again!
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|