Gravity gun wip

Easy way to make gravity gun …only 3 easy python scrips (set and get positon) and ray

target object and press left botton on mouse
http://www.savefile.com/files/894976

new version
http://www.savefile.com/files/896077

enjoy

hi johando
nice contribution ! It’s was almost what I achive to do. It solve my problem but it give some new info about how hard isto a real gravity gun or power like in cyforce

I cant download it right now, can you post a few screenshots? :eyebrowlift2:

Brilhant Brilhant Brilhant!

Congratulations Johando! Much easier setup! Very clean and nice to implement.

Could i ask you a question? What means “slovnik”?

Thank you very much for your contribution.

slovnik=dictionary in english .They have global property. How it works?
I must parenting(fake parenting) only 2 object first have property paruj=1 if second object have some property (paruj=1) copy position first object.

if ray hit the object, change property paruj=1 and object copy position on empty

Really cool. Works perfectly, except for a minor problem where two objects can be picked up at the same time.

Hey thanks for your reply. :yes:

Sorry about this offtopic question, but… could you tell us more about how this “fake parent” tecnic works? :rolleyes:

Thanks in advance.

“except for a minor problem where two objects can be picked up at the same time”

Wow… i didn’t noticed it yet! Sometimes it is really fun : )) As you stated… it is a minor problem… But this fact is relevant to be considered during leveldesign and gameplay development using this tool.

It’s indeed a very good contribution like I said before, I almost reach this point without coding, but the problem is to calculate the vector to move it or attract like a magnet. Maybe it could look pointless but I think it should increase realism. I4m currently trying to get it. anyway keep going johando

UBDATE
new version on gravity gun… the objects are not jumping on point parent on camera…
enjoy

http://www.savefile.com/files/896077

hi johando !
You are impressiv. I was trying to have this effect since like a month and you in a couple of hour you make it. It’s obious that I4m not a programmer but I still working on it. You deserve my credits

cheers

thanks :slight_smile:

I was trying to understand your blend and integrate it inmy own game when I came to a little problem. I don’t understand why my blend is not working. I almost follow your method ( I’m not using vector anymore I need more knowledge ) and I don’t understand where I’ve made a mistake

http://www.4shared.com/file/20531611/d69f746b/power.html

if someone knows tell me

Can you upload the .blend in a .zip folder… i cant open .rar files:(

yeah, i wouldn’t mind a blend file also, i don’t even know what you need to open a .rar
lol im a year late