|
3 registered members (AndrewAMD, Grant, Neb),
908
guests, and 6
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Physicobject-move question
[Re: rayp]
#295692
10/26/09 21:44
10/26/09 21:44
|
Joined: Jul 2008
Posts: 2,101 Germany
rayp
OP
 
X
|
OP
 
X
Joined: Jul 2008
Posts: 2,101
Germany
|
I cant get this to work...can somebody explain me the phent_addforceglobal ? maybe aum ? This is my try-code:
var ball_grav[3] = 0,0, -386;
function _Physic_Ball()
{
vec_set(my.x, camera.x);
vec_set(my.pan, camera.pan);
vec_to_angle(my.pan, camera.pan);
phent_settype( my, PH_RIGID, 0);
phent_setfriction(my, 30);
phent_setmass(my, 10, PH_BOX);
vec_set( temp, ball_grav);
vec_scale( temp, -3 * 10);
phent_addforceglobal(my, vector(30*time,0,0), temp);
WAIT(1);
}
}
function _Gen_Ball()
{
ENT_CREATE("granate.mdl", CAMERA.POS, _Physic_Ball);
}
on_u _Gen_Ball;
Dont really know what im doing 
Last edited by rayp; 10/26/09 21:52.
Acknex umgibt uns...zwischen Dir, mir, dem Stein dort... "Hey Griswold ... where u gonna put a tree that big ?" 1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected rayp.flags |= UNTOUCHABLE;
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|