[ZScript] 6 Degrees of Freedom

Post your example zscripts/ACS scripts/etc here.

[ZScript] 6 Degrees of Freedom

Postby dodopod » Thu Mar 21, 2019 2:53 pm



This script contains a player class that enables movement with 6 degrees of freedom (like Descent, in other words). Feel free to use this in your own mods.

GitLab repo

Downloads
dodopod
 
Joined: 04 Oct 2017

Re: [ZScript] 6 Degrees of Freedom

Postby Cherno » Thu Mar 21, 2019 3:56 pm

Question is, can you actually fly upside-down and do a looping? I think I've read that player pitch is clamped to -90 to 90.
User avatar
Cherno
 
Joined: 06 Dec 2016

Re: [ZScript] 6 Degrees of Freedom

Postby XLightningStormL » Sat Mar 23, 2019 2:33 am

Can't wait for the inevitable DUSK flipping fork!
User avatar
XLightningStormL
DUSK Wiki Master
 
Joined: 09 May 2016
Discord: XLightningStormL#7461
Twitch ID: XLightmingStormL

Re: [ZScript] 6 Degrees of Freedom

Postby dodopod » Sun Mar 24, 2019 11:12 am

Cherno wrote:Question is, can you actually fly upside-down and do a looping? I think I've read that player pitch is clamped to -90 to 90.

Yes you can. This script stores player orientation as a quaternion, and converts it to angle/pitch/roll, which gets around the pitch clamping issue.

XLightningStormL wrote:Can't wait for the inevitable DUSK flipping fork!

Oh yes. I would do it myself, but I haven't actually played DUSK yet, so I doubt I could get the feel right.
dodopod
 
Joined: 04 Oct 2017

Re: [ZScript] 6 Degrees of Freedom

Postby Tormentor667 » Mon Mar 25, 2019 12:04 pm

Descent mods - finally :)
User avatar
Tormentor667
needs more detail
 
Joined: 16 Jul 2003
Location: Germany

Re: [ZScript] 6 Degrees of Freedom

Postby Gorman Frebmane » Tue Apr 02, 2019 11:03 am

Would it be possible to make this script apply only when the player is swimming.
Gorman Frebmane
 
Joined: 13 Jan 2018

Re: [ZScript] 6 Degrees of Freedom

Postby dodopod » Tue Apr 02, 2019 2:16 pm

It probably wouldn't be too difficult to modify it to do that. I'm too busy to do it right now, but I might get around to it in the near future.
dodopod
 
Joined: 04 Oct 2017

Re: [ZScript] 6 Degrees of Freedom

Postby XLightningStormL » Wed Apr 03, 2019 1:54 am

Gorman Frebmane wrote:Would it be possible to make this script apply only when the player is swimming.


Holy moly, now that would be a must have dream!
User avatar
XLightningStormL
DUSK Wiki Master
 
Joined: 09 May 2016
Discord: XLightningStormL#7461
Twitch ID: XLightmingStormL

Re: [ZScript] 6 Degrees of Freedom

Postby Deybar_TECH » Sat Jun 22, 2019 5:24 pm

This is totally incredible. :shock:

Your method is more efficient, faster and much easier to use than the code that I try to built. :wub:

When I install your great code (ZScript) in my aircraft game,
I will add your name [by dodopod] in the credits of my game.
User avatar
Deybar_TECH
Siempre vuelo mas alla de los <∟imites>
 
Joined: 26 Dec 2018
Location: La Paz - BOLIVIA

Re: [ZScript] 6 Degrees of Freedom

Postby dodopod » Sat Jun 22, 2019 6:06 pm

Thank you. I look forward to playing it. If it would work better for you, I've also made an inventory-ized version of this. You can find it on my Gitlab.
dodopod
 
Joined: 04 Oct 2017

Re: [ZScript] 6 Degrees of Freedom

Postby Deybar_TECH » Sat Jun 22, 2019 6:15 pm

when I can create something more stable and playable and install your code in my flight simulator.
I will comment here so you can be the first person to play it. :D
User avatar
Deybar_TECH
Siempre vuelo mas alla de los <∟imites>
 
Joined: 26 Dec 2018
Location: La Paz - BOLIVIA

Re: [ZScript] 6 Degrees of Freedom

Postby Deybar_TECH » Sun Aug 11, 2019 4:13 pm

Spoiler: "in my previous comment"



nothing happens. I already found solutions to what i says. :wink:
User avatar
Deybar_TECH
Siempre vuelo mas alla de los <∟imites>
 
Joined: 26 Dec 2018
Location: La Paz - BOLIVIA


Return to Script Library

Who is online

Users browsing this forum: No registered users and 2 guests