Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 12,420 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
phent_clearangvelocity? ODE / Newton??? #242501
12/23/08 17:44
12/23/08 17:44
Joined: Dec 2005
Posts: 490
Germany/Berlin-Velten
kasimir Offline OP
Senior Member
kasimir  Offline OP
Senior Member

Joined: Dec 2005
Posts: 490
Germany/Berlin-Velten
Hi,
i found phent_clearvelocity, but i need a comand to clear angular veolcities;
linear velocities should be unchanged!!!

this doesn't work:
Code:
phent_getvelocity(me, temp, nullvector); 
phent_clearvelocity(me); 
phent_addcentralforce(me, temp.x);


does Newton support a command like this?

THX kasimir

Re: phent_clearangvelocity? ODE / Newton??? [Re: kasimir] #242503
12/23/08 18:21
12/23/08 18:21
Joined: Mar 2007
Posts: 197
Y
yorisimo Offline
Member
yorisimo  Offline
Member
Y

Joined: Mar 2007
Posts: 197
I think this Newton command would do what you need:
http://www.newtondynamics.com/wiki/index.php5?title=NewtonBodySetOmega

In ODE, have you tried temporarily zeroing the angular speed allowed, or increasing the angular damping
ph_setmaxspeed(entity, var maxLinear, var maxangular );
phent_setdamping ( entity, var linear, var angular );


Joris Lambrecht
My Contributions: Relative Rotation, Window Sizing
Re: phent_clearangvelocity? ODE / Newton??? [Re: yorisimo] #242516
12/23/08 20:25
12/23/08 20:25
Joined: Dec 2005
Posts: 490
Germany/Berlin-Velten
kasimir Offline OP
Senior Member
kasimir  Offline OP
Senior Member

Joined: Dec 2005
Posts: 490
Germany/Berlin-Velten
thx, but both ways doen't works!

I want to create my player (human) as a physic box and disable his pan, tilt and roll. (so the player doesn't fall over)
And i cannot find a smooth way to set his angles to zero...

if i switch off physic to set his angles to zero, than it looks verc bad frown

i have found a Newton joint function "NewtonConstraintCreateUpVector", but i can't get it running...
the character passes into the floor frown

[EDIT] i get it laugh
just using vectorf( ... )!
don't know what "f" means^^

Does anyone know a working newton script?
I found a simple one in Newton-wiki, but i need a better smooth working script!


Last edited by kasimir; 12/24/08 10:41.

Moderated by  HeelX, Spirit 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1