Gravity Gun with ODE-Physics

Posted By: snake67

Gravity Gun with ODE-Physics - 01/13/11 04:07

Hi

Made a gravity gun for my project and wanted to show a small clip just for fun. There is no sound.

http://www.youtube.com/watch?v=dibmlX6290I&feature=player_profilepage
Posted By: 3run

Re: Gravity Gun with ODE-Physics - 01/13/11 06:36

Looks good, but you need to move picked object a bit forward from camera, just my opinion.
Posted By: PadMalcom

Re: Gravity Gun with ODE-Physics - 01/13/11 08:00

It looks very similar to Portal, good work laugh You could add a nice glowing effect at the end of your gun.
Posted By: Roel

Re: Gravity Gun with ODE-Physics - 01/13/11 10:01

nice video, also shares similarities with my "the throwing game",
where you can also throw players and(in future) objects, although on a different way.
Posted By: SchokoKeks

Re: Gravity Gun with ODE-Physics - 01/13/11 17:19

wow, I really love it. 3run is right, it blocks you view a bit too much.
Do you have any plans to share the code with us?
Posted By: snake67

Re: Gravity Gun with ODE-Physics - 01/14/11 15:22

Thanks to all. Yes, the object should hover not that close.

I want to make objects with hinges that can move free by physics. Such as boxes with lids.

Did someone code this with ODE allready? I did it with Newton GD some time ago, but it worked not allways.
Suggestions would be very nice!
Posted By: darkinferno

Re: Gravity Gun with ODE-Physics - 01/14/11 23:05

yes it has been already coded, i cant say where you'll find it however, but i dont think its TOO hard to set up though.. [though that doesnt help you much]
Posted By: Quad

Re: Gravity Gun with ODE-Physics - 01/14/11 23:20

http://mirror.acknexturk.com/index.php?dir=&file=SendPhysics.rar

made by Emre but i guess it's A6 WDL
Posted By: 3run

Re: Gravity Gun with ODE-Physics - 01/15/11 05:46

Look at the Free Resources! There is a version for both C-SCRIPT and LITE-C.
Here is the link:
Download link
Posted By: snake67

Re: Gravity Gun with ODE-Physics - 01/16/11 06:49

Hi

A small update. Thanks to the hints i managed to add destructable hinges. Campared to newton its not that easy to do...
Have a look: Gravity Gun 2
Posted By: 3run

Re: Gravity Gun with ODE-Physics - 01/16/11 08:47

Looks better (but a bit buggy, especially box covers), but one thing looks odd, when you hold object and move with it, looks like vector for object was declared after object was holden (the way it lag after players movement). But that is just my opinion laugh Other ways looks good.
Posted By: the_clown

Re: Gravity Gun with ODE-Physics - 01/16/11 11:56

I guess that's because the object is not placed manually but by use of the physics engine, so it isn't set to a vector, but insetead a force is applied that moves it to the desired position. However, correct me if I'm wrong.

Looks good in my opinion. I'd like to read more about the project itself.
Posted By: 3run

Re: Gravity Gun with ODE-Physics - 01/16/11 12:31

Yes, I didn't mean that he used vectors, I just gave that as an example.
Posted By: snake67

Re: Gravity Gun with ODE-Physics - 01/16/11 16:01

Yes, this would look a lot better, if the force was applied at the hit.x coordinates relative to the object (maybee shifted into it a little bit). I tried but didnt get it to work that way yet...
Posted By: 3run

Re: Gravity Gun with ODE-Physics - 01/16/11 17:19

What physics engine you used? ODE or PhysX?
Posted By: darkinferno

Re: Gravity Gun with ODE-Physics - 01/16/11 23:46

Originally Posted By: 3run
What physics engine you used? ODE or PhysX?
Ahm? you read the topic ?
Posted By: 3run

Re: Gravity Gun with ODE-Physics - 01/17/11 05:40

Duh...sorry my bad grin
© 2024 lite-C Forums