Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 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 | chip programmers | 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