Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by AndrewAMD. 12/05/23 10:56
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
6 registered members (AndrewAMD, alibaba, fairtrader, ozgur, TipmyPip, Quad), 622 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Floating Character #401041
05/12/12 08:07
05/12/12 08:07
Joined: Jul 2008
Posts: 168
8
82RJZAE Offline OP
Member
82RJZAE  Offline OP
Member
8

Joined: Jul 2008
Posts: 168
Hi, I'm using PH_CHAR for player movement and I am getting a similar problem as described in this thread where the model floats a little bit above the ground regardless of the bounding box. From what I understand, the solution that Cristiano_Iost found was to manually rescale the model in MED. Does anyone know of an alternative solution?

Thanks,
82RJZAE

Re: Floating Character [Re: 82RJZAE] #401050
05/12/12 11:34
05/12/12 11:34
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Try something as follows:

my.scale_z = 0.8;
pXent_settype(...)
my.scale_z = 1;


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Floating Character [Re: Superku] #401070
05/12/12 19:53
05/12/12 19:53
Joined: Jul 2008
Posts: 168
8
82RJZAE Offline OP
Member
82RJZAE  Offline OP
Member
8

Joined: Jul 2008
Posts: 168
Thanks for the suggestion. It works to scale it prior to setting the type; however, afterwards if I set my.scale_z=1; it reverts it back to its original floating height. I don't think leaving the model stretched out looks too well.

Re: Floating Character [Re: 82RJZAE] #401092
05/13/12 13:42
05/13/12 13:42
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Hm that's weird. Then you probably have to use two models, one invisible model that does the collision detection (let's say with scale_z = 0.9) and one visible model hat is placed at the same position (with scale_z = 1) or a little below.

EDIT: Btw. I'm using an invisible player model for my game, too, that does not even rotate, but the visible, animated "clone" model does, and I'm not using the physics engine. It's a perfectly legit approach.

Last edited by Superku; 05/13/12 13:46.

"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Floating Character [Re: Superku] #401094
05/13/12 15:05
05/13/12 15:05
Joined: Mar 2010
Posts: 57
Germany, Niedersachsen
LemmyTheSlayer Offline
Junior Member
LemmyTheSlayer  Offline
Junior Member

Joined: Mar 2010
Posts: 57
Germany, Niedersachsen
I had the same problem too.
Just use Object > Tarnsform Global > Center model in MED.


SCHLEIFE SCHLEIFE SCHLEIFE SCHLEIFE SCHLEIFE SCHLEIFE

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