Product Chat / Push or roll a ball or box? Pick something up and put down?

Author
Message
Inea
9
Years of Service
User Offline
Joined: 21st Apr 2015
Location:
Posted: 21st May 2015 17:08
Is it possible to roll or push something in front of you? Or pick something up and then put it down in a certain location?
PM
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 21st May 2015 17:10
Both are possible. For pushing objects, make sure they are dynamic (green glow) and test to see if you can push it. if not go into the properties of that object and turn down the physics weight and friction to taste.

The other has been done with scripting, there are examples in the script board on this.
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

Inea
9
Years of Service
User Offline
Joined: 21st Apr 2015
Location:
Posted: 21st May 2015 17:21
Oh great, thanks Myke!
PM
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 21st May 2015 17:35
You are welcome.
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

Inea
9
Years of Service
User Offline
Joined: 21st Apr 2015
Location:
Posted: 21st May 2015 19:43
hmmm.... no I can't get it the way I would like it to work (push). I've tested on the herb ball (different sizes) lol and a couple of chairs.

I've set them to

dynamic (No on static)
physics on
Different settings on Physics weight and friction everything from 0-500, I've tried all different kinds of variations, there's not that much difference in how much they move.

I've used first person and then third person as it was easier to see what's going on.

Physics, isn't the higher the number heavier?
Friction, I know what friction is, but a lower number does that make it easier to move?

I've tried all variations and really couldn't see much difference.
PM
Teabone
Forum Support
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 21st May 2015 19:47
Also have to check what collision mode they are set to. Which defines their shape.
i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce 420 GT
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 21st May 2015 19:54
the is not sphere collision yet, so this will be difficult for them. You can set it for polygon detection and it will be better, but no where close to sphere physics. There will be new collision modes introduced to aid with this.
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

smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 21st May 2015 20:55
assign this to your dynamic objects
push_object.lua
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
Inea
9
Years of Service
User Offline
Joined: 21st Apr 2015
Location:
Posted: 22nd May 2015 08:29
Great, thanks for the tips everyone and the lua script, smallg. I'll have to look into that and see what I can learn and do!
PM
J_C
17
Years of Service
User Offline
Joined: 9th Nov 2007
Location:
Posted: 22nd May 2015 09:39
great little script smallg..

if you use the 3rd person character then rem out the [ else ] just above CollisionOn(e)
so much fun....
PM
Tarkus1971
Audio Media Maker
9
Years of Service
User Offline
Joined: 24th Feb 2015
Location: England, UK
Posted: 22nd May 2015 11:37
tremendous smallg, you deserve another user of the month award
Aftershock Quad Core AMD FM2+ 3.5 GHz 8GB Motherboard and Processor, A7700k apu, AMD HD7870 gfx card.
King Korg Synth, Alesis SR18 Drum Machine, Akai MPX8 sample player, Roland Fantom XA Synth, Axus Digital AXK2 Digital Drum Kit.
Inea
9
Years of Service
User Offline
Joined: 21st Apr 2015
Location:
Posted: 22nd May 2015 15:45
What is rem out? J_C said "if you use the 3rd person character then rem out the [ else ] just above CollisionOn(e)
so much fun.... " I want to have fun and know what to do haha!

And I'm all for smallg getting the user of the month award

I suppose I should ask this in the script forum, but as I already started here....

Is there an extremely easy small lua-school somewhere, I only want/need to understand the basics, well to start anyway. Stuff like the scripts in the Cartoon and the Big Escape.

Thanks
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 22nd May 2015 17:28
rem out is the part you add before a line to make it ignored by the engine, normally
Quote: "--"
in lua (double minus)

there is a tutorial for beginners scripting in the steam section, i dont really visit the steam forum but i'm sure someone can find it
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
J_C
17
Years of Service
User Offline
Joined: 9th Nov 2007
Location:
Posted: 22nd May 2015 17:34
Inea@

At line 25 in smallg's script above there is an [ else ] statement..

rem this step out... like so

--else

the 2 -- minus signs are the rem statement in LUA...
like it is at step 1 the green text

PM
J_C
17
Years of Service
User Offline
Joined: 9th Nov 2007
Location:
Posted: 22nd May 2015 17:35
Smallg we must have been typing reply at the same time...

PM
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 22nd May 2015 17:54
But smallg has a script for reply fastes

@ smallg
Thanks a lot mate, nice work as usual.

3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 8.1 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM

Login to post a reply

Server time is: 2024-11-23 11:23:54
Your offset time is: 2024-11-23 11:23:54