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 (TipmyPip, AndrewAMD), 13,824 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
How to roll while pan #393489
02/03/12 23:14
02/03/12 23:14
Joined: Sep 2006
Posts: 292
M
Mythran Offline OP
Member
Mythran  Offline OP
Member
M

Joined: Sep 2006
Posts: 292
How do i make the player roll to a maxium of 20º while the player is panning? The player must also roll to the side the player is panning.

my.pan = ((1 - (SmoothSpeed / 25) * time_step) * (my.pan - camera.pan) + camera.pan); // This is the code used to pan the player.

Thanks.

Re: How to roll while pan [Re: Mythran] #393491
02/03/12 23:25
02/03/12 23:25
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
You'll need to find the change in speed, not just the speed. If your speed changes, then you want to roll (I suppose).

my.roll = clamp( my.roll + changeOfSpeed * time_step, -20, 20 )


Click and join the 3dgs irc community!
Room: #3dgs

Moderated by  adoado, checkbutton, mk_1, Perro 

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