Gamestudio Links
Zorro Links
Newest Posts
How to Change Multiplier
by vicknick. 06/02/23 03:27
How to buy tomorrow at open?
by vicknick. 06/02/23 03:19
Adding Position to Current Trade
by vicknick. 06/02/23 03:09
Unable to change multiplier of contract
by vicknick. 05/30/23 06:56
Wrong Definition of Sharpe Ratio in Zorro?
by vicknick. 05/29/23 06:32
Backtest strategy on bitcoin/crypto
by JamesHH. 05/26/23 04:36
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (vicknick, 7th_zorro, Quad), 1,030 guests, and 10 spiders.
Key: Admin, Global Mod, Mod
Newest Members
BInnacle, androsa, XquicksnowX, danishinvest, Trail
18942 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Player Rotates Into Level Geometry #333775
07/18/10 23:02
07/18/10 23:02
Joined: Jul 2008
Posts: 168
8
82RJZAE Offline OP
Member
82RJZAE  Offline OP
Member
8

Joined: Jul 2008
Posts: 168
Hi, I am scripting a simple movement code and have an issue when the player is rotated. I have it set so that when the mouse is moved left and right it will pan the player. The problem is when I rotate my character it causes him to sometimes get moved into the level geometry. It is very noticeable if the player jumps against a flat wall while changing his rotation. The player is eventually pushed out of the wall; however, it makes the movement seem very jerky.

I have tried altering the player.pan directly as well as using c_rotate with not much success. I have set the bounding box using c_setminmax.

Any suggestions please?

Re: Player Rotates Into Level Geometry [Re: 82RJZAE] #333778
07/19/10 00:05
07/19/10 00:05
Joined: Dec 2008
Posts: 1,660
North America
Redeemer Offline
Serious User
Redeemer  Offline
Serious User

Joined: Dec 2008
Posts: 1,660
North America
Try using c_rotate() with the GLIDE parameter.


Eats commas for breakfast.

Play Barony: Cursed Edition!
Re: Player Rotates Into Level Geometry [Re: Redeemer] #333788
07/19/10 02:40
07/19/10 02:40
Joined: Jul 2008
Posts: 168
8
82RJZAE Offline OP
Member
82RJZAE  Offline OP
Member
8

Joined: Jul 2008
Posts: 168
I am using c_rotate with that parameter with no result.

Re: Player Rotates Into Level Geometry [Re: 82RJZAE] #333789
07/19/10 03:03
07/19/10 03:03
Joined: Jul 2010
Posts: 129
B
bk9iq Offline
Member
bk9iq  Offline
Member
B

Joined: Jul 2010
Posts: 129
The problem is with the bounding box I think...
press F11 twice while running the level and see the box around the player if it is not matching the character's size then delete c_setminmax(me);
and set it manually using :
my.eflags |= FAT | NARROW;
vec_set(my.min_x,vector(-19,-19,-38));
vec_set(my.max_x,vector(19,19,38));

change the values until u get the right bounding box...


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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