[ZScript] 6 Degrees of Freedom

Post your example zscripts/ACS scripts/etc here.
Forum rules
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.
Post Reply
dodopod
Posts: 66
Joined: Wed Oct 04, 2017 2:00 pm
Contact:

[ZScript] 6 Degrees of Freedom

Post 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
User avatar
Cherno
Posts: 1309
Joined: Tue Dec 06, 2016 11:25 am

Re: [ZScript] 6 Degrees of Freedom

Post 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.
XLightningStormL
Posts: 384
Joined: Mon May 09, 2016 1:38 am
Location: Anywhere but here
Contact:

Re: [ZScript] 6 Degrees of Freedom

Post by XLightningStormL »

Can't wait for the inevitable DUSK flipping fork!
dodopod
Posts: 66
Joined: Wed Oct 04, 2017 2:00 pm
Contact:

Re: [ZScript] 6 Degrees of Freedom

Post 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.
User avatar
Tormentor667
Posts: 13530
Joined: Wed Jul 16, 2003 3:52 am
Contact:

Re: [ZScript] 6 Degrees of Freedom

Post by Tormentor667 »

Descent mods - finally :)
Gorman Frebmane
Posts: 116
Joined: Sat Jan 13, 2018 3:17 am

Re: [ZScript] 6 Degrees of Freedom

Post by Gorman Frebmane »

Would it be possible to make this script apply only when the player is swimming.
dodopod
Posts: 66
Joined: Wed Oct 04, 2017 2:00 pm
Contact:

Re: [ZScript] 6 Degrees of Freedom

Post 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.
XLightningStormL
Posts: 384
Joined: Mon May 09, 2016 1:38 am
Location: Anywhere but here
Contact:

Re: [ZScript] 6 Degrees of Freedom

Post 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!
User avatar
Deybar_TECH
Posts: 144
Joined: Wed Dec 26, 2018 3:36 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 7
Graphics Processor: Not Listed
Location: El Alto - La Paz - BOLIVIA
Contact:

Re: [ZScript] 6 Degrees of Freedom

Post 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.
dodopod
Posts: 66
Joined: Wed Oct 04, 2017 2:00 pm
Contact:

Re: [ZScript] 6 Degrees of Freedom

Post 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.
User avatar
Deybar_TECH
Posts: 144
Joined: Wed Dec 26, 2018 3:36 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 7
Graphics Processor: Not Listed
Location: El Alto - La Paz - BOLIVIA
Contact:

Re: [ZScript] 6 Degrees of Freedom

Post 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
User avatar
Deybar_TECH
Posts: 144
Joined: Wed Dec 26, 2018 3:36 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 7
Graphics Processor: Not Listed
Location: El Alto - La Paz - BOLIVIA
Contact:

Re: [ZScript] 6 Degrees of Freedom

Post by Deybar_TECH »

Spoiler: in my previous comment

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

Return to “Script Library”