Page 1 of 1

[ZScript] 6 Degrees of Freedom

PostPosted: Thu Mar 21, 2019 1:53 pm
by dodopod


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

Re: [ZScript] 6 Degrees of Freedom

PostPosted: Thu Mar 21, 2019 2:56 pm
by Cherno
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.

Re: [ZScript] 6 Degrees of Freedom

PostPosted: Sat Mar 23, 2019 1:33 am
by XLightningStormL
Can't wait for the inevitable DUSK flipping fork!

Re: [ZScript] 6 Degrees of Freedom

PostPosted: Sun Mar 24, 2019 10:12 am
by dodopod
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.

Re: [ZScript] 6 Degrees of Freedom

PostPosted: Mon Mar 25, 2019 11:04 am
by Tormentor667
Descent mods - finally :)

Re: [ZScript] 6 Degrees of Freedom

PostPosted: Tue Apr 02, 2019 10:03 am
by Gorman Frebmane
Would it be possible to make this script apply only when the player is swimming.

Re: [ZScript] 6 Degrees of Freedom

PostPosted: Tue Apr 02, 2019 1:16 pm
by dodopod
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.

Re: [ZScript] 6 Degrees of Freedom

PostPosted: Wed Apr 03, 2019 12:54 am
by XLightningStormL
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!

Re: [ZScript] 6 Degrees of Freedom

PostPosted: Sat Jun 22, 2019 4:24 pm
by Deybar_TECH
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.

Re: [ZScript] 6 Degrees of Freedom

PostPosted: Sat Jun 22, 2019 5:06 pm
by dodopod
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.

Re: [ZScript] 6 Degrees of Freedom

PostPosted: Sat Jun 22, 2019 5:15 pm
by Deybar_TECH
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

Re: [ZScript] 6 Degrees of Freedom

PostPosted: Sun Aug 11, 2019 3:13 pm
by Deybar_TECH
Spoiler: "in my previous comment"



nothing happens. I already found solutions to what i says. :wink: