Product Chat / For my next trick, or who says physics is broken?

Author
Message
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 13th Mar 2018 20:22



And the spaghetti code:




The Prompt is just there to show you the 'name' of the hinge each door has.
Been there, done that, got all the T-Shirts!
PM
GraPhiX
Forum Support
19
Years of Service
User Offline
Joined: 15th Feb 2005
Playing:
Posted: 13th Mar 2018 20:44
its ok then ? will do some more mmm how about a drawbridge could use the chains with it ?
Welcome to the real world!
Main PC - Windows 10 Pro x64 - Core i7-7700K @4.2GHz - 32GB DDR4 RAM - GeForce GTX 1060-6G 6GB - 1TB NVe SSD
Test PC - Windows 10 Pro x64 - G4400 @3.3GHz - 16GB DDR3 RAM - GeForce GTX 950 2GB - 500GB SSD
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 13th Mar 2018 21:47
Sounds a bit big!

What happened to the swing?
Been there, done that, got all the T-Shirts!
PM
GraPhiX
Forum Support
19
Years of Service
User Offline
Joined: 15th Feb 2005
Playing:
Posted: 13th Mar 2018 21:52
LOL ok swing it is ha ha ha
Welcome to the real world!
Main PC - Windows 10 Pro x64 - Core i7-7700K @4.2GHz - 32GB DDR4 RAM - GeForce GTX 1060-6G 6GB - 1TB NVe SSD
Test PC - Windows 10 Pro x64 - G4400 @3.3GHz - 16GB DDR3 RAM - GeForce GTX 950 2GB - 500GB SSD
Flatlander
GameGuru Master
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 13th Mar 2018 22:36
Tarkus1971 wrote: "I think we need a new badge created for AmenMoses's work here, this is just amazing stuff. The new badge should be "Physics Champion" "


I agree but I actually want to donate some Euros or dollars for his work. I'm assuming this all is going into the final build if not already in the preview and he deserves a monetary income for his expertise. Even so, he probably would not get what he is worth or asks for on a professional basis; unless becomes a community wide donation.
When in doubt -- C4 :heh, heh, heh:

-Jamie Hyneman
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 13th Mar 2018 23:34
It's a nice thought but I already give my accountant enough headaches as it is!

Maybe a free copy of any games you make using my scripts? Not that I really play a lot of PC games, prefer Nintendo 3DS or Switch games. I'm about 40% of the way through Layton's Mystery Journey, and yes I have completed all the previous Layton games.

Been there, done that, got all the T-Shirts!
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 14th Mar 2018 22:03
Update.

I've pushed the latest stuff, including the physlib and pickuppables scripts to GitHub.

Haven't fixed the scaling issue fully so just use it with unscaled entities for now, push/pull force is probably a bit excessive but I left it the way it is, use the 'weight' parameter to control it, i.e. the lower you set it the further/harder you'll be able to throw stuff. (be carefult throwing exploding entities as they will explode on contact with other entities! )

I discovered that the 'collisionscaling' fpe parameter is not applied to simple shapes (box/cylinder/sphere) at present so I may add that next. That will allow the collision shape to be smaller than the visible shape, that way doors can be a tighter fit in frames for example and allow the models to have visible hinges and other 'sticky out bits' that don't get in the way collision wise.

When (if?) Lee includes the changes in a release I'll start a thread in the scripts forum where I can put examples, of things like hinges and chains and show how to handle collision detection and all the other cool stuff. I'll also keep adding to the physlib module as I think up new utility functions.

Been there, done that, got all the T-Shirts!
PM
Flatlander
GameGuru Master
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 15th Mar 2018 01:37
AmenMoses wrote: "Maybe a free copy of any games you make using my scripts?"


I hope I'm still around when saving a stand-alone is solidly working. Right now it's still pretty iffy. All the way from not even loading the created terrain to getting a fatal MS error to the point they ask you to send them a data file.

I'm biting at the bit for your scripts. The newest preview has the pickuppable script. However, you can't seem to throw the object but only releasing it in order to stack objects. An old pickup script that I had purchased through the store had one major flaw (not the author's fault) that you can go through walls with the object held. Your script takes that into consideration probably because of some new additions to the core engine or something like that. What do I know. I'm talking to a genius with math and physics.

When in doubt -- C4 :heh, heh, heh:

-Jamie Hyneman

Attachments

Login to view attachments
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 15th Mar 2018 09:36
The first pickuppables script (actually it's about the fourth iteration, I wrote the first 2 years ago!) only has pickup/carry/stack/drop as that was the one I sent Lee about a month ago or more, the push/pull/throw and improved collision detection needed more engine additions which I've only just pushed.

All of this should still be considered 'Beta' btw, as I've been saying for ages now I need feedback from users in order to polish the ....
Been there, done that, got all the T-Shirts!
PM
Tarkus1971
Audio Media Maker
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 15th Mar 2018 17:42
sounds great amenmoses, I hope lee will add these as soon as he can. Still making a level here with the pick up and stack stuff and it is working really well.
Aftershock Quad Core AMD FM2+ 3.5 GHz 8GB Motherboard and Processor, A7700k apu, Asus GT970 STRIX 4gb Nvidia gfx card.
King Korg Synth, Alesis SR18 Drum Machine, Akai MPX8 sample player, Roland Fantom XA Synth, Axus Digital AXK2 Digital Drum Kit, Novation Ultranova Synth, Waldorf Blofeld Synth, Roland D05 Synth Module, Bluedio Victory V Headphones, AKG K141 Studio Headphones, Lenovo Ideapad, with Windows 10 64bit, 8Gb Ram and AMD A10 7th Gen Graphics.
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 17th Mar 2018 20:55
I promised earlier that I was going to provide users with an easy way to use 'hinges', I may have mentioned names (a few times), well here are the named hinges all in one video to demo the range available in the physlib module.

I will provide small scripts that can be added to any dynamic entity, the name of the entity triggers the hinge constraint to be generated.

Been there, done that, got all the T-Shirts!
PM
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 17th Mar 2018 21:59
Outstanding.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

granada
Forum Support
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 17th Mar 2018 23:20
One word ,fantastic .

Dave
Windows 10 Pro 64 bit
GeForce GTX 1050 Ti
AMD FX (tm)-9590 Eight-core Processor
31.96 GB RAM
1920x1080,60 Hz
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 20th Mar 2018 21:45 Edited at: 20th Mar 2018 21:47
Had to share another video, this is just too much fun.

Been there, done that, got all the T-Shirts!
PM
granada
Forum Support
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 20th Mar 2018 23:26
Looks like you have cracked it .

Dave
Windows 10 Pro 64 bit
GeForce GTX 1050 Ti
AMD FX (tm)-9590 Eight-core Processor
31.96 GB RAM
1920x1080,60 Hz
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 21st Mar 2018 19:39
Slightly better version:



The frame is from Mega Pack 2 btw, part of the church I believe.

The top link is simply a static one, all the others are hinges. I think it looks realistic enough.
Been there, done that, got all the T-Shirts!
PM
granada
Forum Support
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 21st Mar 2018 19:53
Nothing stands out as wrong ,to me it look great.

Dave
Windows 10 Pro 64 bit
GeForce GTX 1050 Ti
AMD FX (tm)-9590 Eight-core Processor
31.96 GB RAM
1920x1080,60 Hz
PM
GraPhiX
Forum Support
19
Years of Service
User Offline
Joined: 15th Feb 2005
Playing:
Posted: 21st Mar 2018 19:58
oh poo I'm so sorry I have not done the hanger for the chain I totally forgot will get it done asap it looks perfect btw brilliant job
Welcome to the real world!
Main PC - Windows 10 Pro x64 - Core i7-7700K @4.2GHz - 32GB DDR4 RAM - GeForce GTX 1060-6G 6GB - 1TB NVe SSD
Test PC - Windows 10 Pro x64 - G4400 @3.3GHz - 16GB DDR3 RAM - GeForce GTX 950 2GB - 500GB SSD
MStockton
9
Years of Service
User Offline
Joined: 28th Apr 2015
Location: Texas & Finland
Posted: 22nd Mar 2018 14:55
I absolutely can't wait to see this all refined and ready to go. These are things I've needed desperately for the last three months, and just in general for the last three years.
PM
OldFlak
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 27th Jan 2015
Location: Tasmania Australia
Posted: 22nd Mar 2018 22:44
Yep, wow - just wow

You know your really starting to make me look very amateurish in this 3D world.....

Reliquia....
aka OldFlak
Intel(R) Core(TM) i3-4160 @ 3,60GHz. 8GB Ram. NVidia GeForce GTX 750. Acer 24" Monitors x 2 @ 1920 x 1080. Windows 10 Pro 64-bit.
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 23rd Mar 2018 14:01
If you don't get paid to do something then by definition you are an amateur, no matter how good at it you are!

I work on a daily basis with plenty of 'professionals' who I wouldn't personally let anywhere near a keyboard if I had any say in the matter.
Been there, done that, got all the T-Shirts!
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 24th Mar 2018 16:09
Another hinge demo:

(models came from http://www.reinerstilesets.de/)



I'll add trigger code and player damage code to the script later.
Been there, done that, got all the T-Shirts!
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 24th Mar 2018 16:33
There are some pretty cool models at that link.

Now what can I do with this one?

Been there, done that, got all the T-Shirts!
PM
SpaceWurm
Game Guru Backer
13
Years of Service
User Offline
Joined: 11th Nov 2011
Playing:
Posted: 24th Mar 2018 18:46 Edited at: 27th Jul 2019 14:45
Is the player able to push objects without having to press a button?
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 24th Mar 2018 19:05
Yes, sort of. The player capsule has a physical 'push' effect in the direction you are walking (that capability is already in GG, just set an entity to active and drop the weight and friction values down low and you can push it around).

But, it's not very easy to control as being a capsule shape you are basically pushing with a curved shape in front of you so things tend to move off to the right or left following the curve.

With the addition of the Lua 'Push' commands you can control how you push things around via script now, i.e. detect an object in front of the player and when within a certain range give it a 'push' in the same direction the player is travelling. The effect of the push obviously depends on the internal mass calculation that the engine makes for the entity but by fiddling around with the weight/friction values you can get a reasonable effect.

Been there, done that, got all the T-Shirts!
PM
Tauren
9
Years of Service
User Offline
Joined: 25th Jun 2015
Playing: PUBG,Conan Exiles,WoW,HoMM III,MoO 2,Master of Orion 2016
Posted: 30th Mar 2018 16:38 Edited at: 30th Mar 2018 16:46
Hello, AmenMoses . Thank you for your wonderful work !
I have an idea - Is it possible to change the center of gravity to the selected entity ? For example, to an object like a big rock ? Default gravity goes down, but if it is possible to change the center of gravity ?
For example, if you are in space, then an attraction to an asteroid ?

I have an idea to use your script "Attaching an entity to another via Lua using generic functions" for attachment to an asteroid, however, this is little bit different.
PM

Login to post a reply

Server time is: 2024-11-24 07:51:36
Your offset time is: 2024-11-24 07:51:36