|
1 registered members (AndrewAMD),
527
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Newbie Question
[Re: A.Russell]
#27648
06/06/04 22:47
06/06/04 22:47
|
Joined: Mar 2003
Posts: 5,377 USofA
fastlane69
Senior Expert
|
Senior Expert
Joined: Mar 2003
Posts: 5,377
USofA
|
Quote:
Also, is there a way to stop the entity from spinning?
Set phent_maxspeed(linMax,Null) and this will limit the entities linear speed to linMax and it's Rotational speed to Zero.
Quote:
constaint1[3]=1,0,0; //only allows movement on x axis?
That's right...so if your "chute" isn't lined up right, you'll get odd effects indeed.
Quote:
phcon_setparams1(constraint1, vector(1,0,0),nullvector,nullvector); // I thought that the second agument of this set the contraint axis?
I"m sorry Russel...constraint1 is the problem, but I gave you the wrong solution.
constraint1=phcon_add(ph_slider, my, 0);
There that should do it. Forget that constraint vector buisness, you are right; vector() is constraint axis. Sorry for the confusion. ![](/ubbthreads/images/graemlins/smile.gif)
|
|
|
|
|
|