Scripts / Pinball?....PinBall Physics

Author
Message
ShN33Ky
Game Guru Backer
11
Years of Service
User Offline
Joined: 24th Mar 2013
Location: San Clemente ca.
Posted: 18th Jul 2017 20:10
Just wondering if anybody's done anything pinball like! rolling/bouncing/flipper's etc etc etc ....

Please share anything related

TY
sHn33Ky
Processor: Intel(R) i7-4700MQ CPU @ 2.40GHz 2.40 GHz Installed memory (RAM): 16.0 GB (15.8 GB usable) System type: 64-bit Operating System,x64-based processor

Start the day by righting your wrongs then end you day right so you don't have to do it again tomorrow ...

sHn33Ky
Teabone
Forum Support
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 19th Jul 2017 00:51
I'm sure its very possible since the physics system isnt that bad. I'd imagine you could do even more stuff like this in it:



Twitter - Teabone3 | Youtube - Teabone3 | Twitch - Teabone3 | TGC Assets - Store Link

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GT 740
ShN33Ky
Game Guru Backer
11
Years of Service
User Offline
Joined: 24th Mar 2013
Location: San Clemente ca.
Posted: 19th Jul 2017 02:18
inspiring to say the least....
Processor: Intel(R) i7-4700MQ CPU @ 2.40GHz 2.40 GHz Installed memory (RAM): 16.0 GB (15.8 GB usable) System type: 64-bit Operating System,x64-based processor

Start the day by righting your wrongs then end you day right so you don't have to do it again tomorrow ...

sHn33Ky
Teabone
Forum Support
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 19th Jul 2017 02:48 Edited at: 19th Jul 2017 15:06
So this is potentially do-able



You'll just have to figure out the scripting towards paddles and such and launchers. Which are basically just moving objects based on key presses. Also will have to figure out how physical force commands work. I'm quite new to them. With the balls and barrels test, they didn't work at first because of the weight and friction was set by default too high. In this test I have both weight and friction levels set to 1 instead of the default 100 or more. You can play around with these to maybe get more desirable results. As you can see at the end of the video... if the friction is set to 1 the ball just keeps rolling.

You've given me some ideas... and it looks like all of the Fallout 4 in-game games are completely do-able. For a pinball sort of game I think you'll have to create objects that have scripts detecting for if the ball is at a very close proximity to determine if they have been hit. So they can flash, play sounds and give points. Very creative of you to ask about this time of mechanic!
Twitter - Teabone3 | Youtube - Teabone3 | Twitch - Teabone3 | TGC Assets - Store Link

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GT 740
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 19th Jul 2017 11:36
Quote: "Also will have to figure out how physical force commands work"

there are physics force commands in GG? that's news to me or are you referring to MoveForward() etc? they don't really apply a physical force, just obey the physical world for collision (compared to SetPosition() ).

pinball is probably not possible with the control on the physics we have as you would need bounces and/or more control on the angle (angle doesnt get updated by a rotation caused by a physics movement) etc - though it can be done with a completely written code i imagine now we have raycasts it should be possible.

lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Login to post a reply

Server time is: 2024-12-23 00:42:35
Your offset time is: 2024-12-23 00:42:35