3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1] 2

Author Topic: Static to dynamic collision  (Read 1905 times)

« on: June 11, 2012, 06:13:31 PM »
I seem to be having a problem with a rigid body set to static at the start but gaining mass later, something just seems off with the collisions, which makes me wonder... does setting a dynamic body to static at the start nullify the other variables for such a body? does this mean I need to assign the other variables when switched to dynamic?

The original problem was to solve the object falling over at the start, first I tried a fixed joint and stopping it upon collision, but the joint didn't seem to work as shown in the example, so I tried a different tact, making it static sure does keep it rigid, but upon collision it just seems like a very weak reaction (compared to others in the same sim).

Any thoughts would be appreciated!
Thanks in advance for any help
           Some Slacker


Now even rad'er with 7.22!
« Reply #1 on: June 12, 2012, 07:46:59 AM »
i think that AllanF would be able to give you the most useful information and advice on this... he's the resident physics guru here...  maybe leave him a IM directing him to the post, or visit his site https://sites.google.com/site/thevirtualworkbench/

--Mike
« Reply #2 on: June 12, 2012, 08:44:22 AM »
As far as I know, static rigidbodies and dynamic rigidbodies are completely different.

You just change one of them into the other one.

To get what you are after, use a dynamic rigidbody and link it to a joint. If you disable the joint, it looks like it's got some mass.
Rocket Rumble, a 3D Rad puzzle game:
http://www.3drad.com/forum/index.php?topic=9896.0
« Reply #3 on: June 12, 2012, 08:56:29 AM »
To get what you are after, use a dynamic rigidbody and link it to a joint. If you disable the joint, it looks like it's got some mass.

This is what I'd do too. Just to add though, I would change the joint object to a 'fixed' type so there is no movement before you disable it.
« Reply #4 on: June 12, 2012, 01:43:28 PM »
i think that AllanF would be able to give you the most useful information and advice on this... he's the resident physics guru here...  maybe leave him a IM directing him to the post, or visit his site https://sites.google.com/site/thevirtualworkbench/

--Mike

Never had anyone direct me to a trojan before... Kinda makes ya wonder whats Really going on here.... :o

Regardless..

As you can see from my first post, the joint isn't working, don't know if its cause I have too many other joints working or what, but the joint wouldn't hold the dynamic rigid body still, so I tried another direction.

I mean I guess I should just check the other variables for the rigid body before and after the switch from static to dynamic (and yes it is a physics object dynamic in every way, all I did was set it to static with a mass of minus one).
Thanks in advance for any help
           Some Slacker


Now even rad'er with 7.22!
« Reply #5 on: June 13, 2012, 04:06:35 AM »
A trojan!? I visted the same site and i didn't have any problems. Mike or any of the other members here wouldn't link you to a trojan. Just to confirm that is Alan's site and nor would he put you at risk. Now for your problem. Have you any other joints on the said rigidbody. As then would have to be stopped. Only one joint can be used on a rigidbodie at one time. You can start and stop joints though.


Gamefreaks1234 gaming forum a great place for general gaming chat and getting your games out there and played.
« Reply #6 on: June 13, 2012, 08:42:24 AM »
Quote
Never had anyone direct me to a trojan before... Kinda makes ya wonder whats Really going on here....

perfect example of why many people will never get anything done... either in 3DRAd, or in anything else they attempt...

they immediately jump to conclusions that are lacking any basis in fact... they never ever consider that the fault may be their own... and then they immediately go off on an accusatory rant...

stop for a second 'Slacker, and ask yourself the following questions...
what possible reason would i have to direct you, of all people, to a trojan...
is it possible that my computer is already infected with a trojan...
is my antivirus popping up a false positive...

accusing someone of doing something which they are not guilty of doing can get you in some real deep kimshee... you should learn to engage your brain before you engage mouth (fingers on keyboard in this case)...

so much for me trying to help this f#Ck3r again...

--Mike
« Reply #7 on: June 13, 2012, 09:07:53 AM »
Mike don't take it to heart mate. Let them accuse... Then you have more time doing what you want to do rather then helping endlessly to a wasted cause.


Gamefreaks1234 gaming forum a great place for general gaming chat and getting your games out there and played.
« Reply #8 on: June 13, 2012, 09:20:47 AM »
its ok... i don't take too much i read here too seriously any more  :D


--Mike
« Reply #9 on: June 13, 2012, 01:00:03 PM »
perfect example of why many people will never get anything done... either in 3DRAd, or in anything else they attempt...

they immediately jump to conclusions that are lacking any basis in fact... they never ever consider that the fault may be their own... and then they immediately go off on an accusatory rant...

stop for a second 'Slacker, and ask yourself the following questions...
what possible reason would i have to direct you, of all people, to a trojan...
is it possible that my computer is already infected with a trojan...
is my antivirus popping up a false positive...

accusing someone of doing something which they are not guilty of doing can get you in some real deep kimshee... you should learn to engage your brain before you engage mouth (fingers on keyboard in this case)...

so much for me trying to help this f#Ck3r again...

--Mike

That is what I couldn't figure out, normally I am very careful about what sites I visit, and especially what I choose to actually download. So, to say that my anti virus software works very little and I imagine not very hard for me, in fact I cannot remember the last time it popped up to tell me something was wrong. In this case it did pop up to tell me I had downloaded a trojan horse Downloader.Generic10 or somesuch thing. It seemed to me to be a legitimate threat, but what do I know? Either way it didn't really matter as the anti virus software stopped it and no harm was done. I just really thought that if the threat was real, others may want to know. I didn't go off on any accusatory rant, it was a single sentence followed by a regardless, to me meaning that I was over it. Like I say, my anti virus never gives me such warnings, I really thought I was being prudent and even dare I say... Helpful.. I regret if you took this any other way Mike...

Some (serious) Slacker
Thanks in advance for any help
           Some Slacker


Now even rad'er with 7.22!
« Reply #10 on: June 13, 2012, 01:52:24 PM »
I forgot to specify, It was NOT the site itself, I did choose to download one of his projects, as I thought it perhaps had some bearing on my current train of thought. I think it was task2 from his 3dradict site. Looking at it again, not sure what my train of thought was, but I did choose to download it.. heh

Again, Regardless,

Made another slight change to combat the static to dynamic setting, I ran some tests and simply changed to a dynamic body BEFORE impact (totally estimated, so sometimes the mailbox falls over without impact, which makes me sad... hehe) this seemed to help a bit, but still the mailbox's reaction to the car hitting it is so totally different than hitting the 'bones' of the ragdoll, I feel as though I am just too dumb to figure out why its so different... I think I'm back to chasing down the other variables for dynamic rigid bodies.

Thanks in advance for any help
           Some Slacker


Now even rad'er with 7.22!
« Reply #11 on: June 13, 2012, 01:59:23 PM »


I meant to include this shot in the last post, but can't edit it, and of course my posts still have to wait for approval, so here it is anyway, you can see the mailbox about to be hit and the ragdoll is falling apart as it takes damage from the car...
Thanks in advance for any help
           Some Slacker


Now even rad'er with 7.22!
« Reply #12 on: June 14, 2012, 12:17:06 AM »
None of the projects or exe files on my site contain viruses.

However, if you are running AVG, you may get a trojan warning on a couple of the older projects. This is a FALSE POSITIVE, issued by AVG, because of a conflict it has with compiled 3DRad projects, packed with an early version which Molebox Pro, which I use.

If you get this warning, just temporarily disable AVG protection.
AKA: The 3D Raddict http://www.3draddict.com/
« Reply #13 on: June 14, 2012, 01:34:24 AM »
None of the projects or exe files on my site contain viruses.

However, if you are running AVG, you may get a trojan warning on a couple of the older projects. This is a FALSE POSITIVE, issued by AVG, because of a conflict it has with compiled 3DRad projects, packed with an early version which Molebox Pro, which I use.

If you get this warning, just temporarily disable AVG protection.

So yeah, now I do feel like an idiot, but not sure how I would know a 'false positive' from a real one, and yer right I do indeed use AVG as it has served me well for many many years.

I wish to formally withdraw my accusation wholeheartedly and beg forgiveness for my total noobness! I haven't been this embarrassed since I started on the 'net' back in '92 on the ole Delphi Network... (Red Baron FTW! lol)

Anyway, I still haven't been able to track this problem down, seems a dynamic body can be made static and switched to dynamic without changing any other variable, so its not that, as hypokill said, only one joint per rigid body, which I hope is totally false, cause the ragdoll addon came with 2 joints attached to each 'body part' (except the head, hands and feet, 5 joints on the torso!) and I added slider joints to the head to provide some movement but not perfect movement (on purpose, its as if the ragdoll is hanging on a clothes line that you can slide back and forth but he kind of looks like he's slowly falling off) though even with all that, I couldn't get a fixed joint to work on the mailbox, so static to dynamic seemed like a logical step.

Perhaps this whole problem can simply be put down to wonky physics? I only say this 'cause the reaction of the ragdoll and the mailbox are so totally different even though the variables (for mass friction etc) are fairly equivalent. Though I think I have wasted enough time on this minor problem (I just want to understand what's goin on! heh), and I think I've pissed enough people off for a lifetime, still not gonna detract me from trying figuring out why these things are working the way they are instead of the way I want!!!
Thanks in advance for any help
           Some Slacker


Now even rad'er with 7.22!
« Reply #14 on: June 14, 2012, 11:39:08 PM »
Duh,

Finally figured out why the reactions were so different... sigh.... I had the AI stop once he hit the mailbox, once I gave him a second after the initial hit everything seems to be working fine, sometimes I wonder why my brain works so hard against me!

On to the next problem! yay!

Sketchuping a head seems like an easy thing to do, guess that's where I'm at next, I am tired of lookin at Mario's ugly mug! heh! Then of course the rest of the body parts, and I guess I should re-do the rigid bodies for the body parts, and of course some actual vehicle skins, sigh, so much work for a total Slacker!
Thanks in advance for any help
           Some Slacker


Now even rad'er with 7.22!
Pages: [1] 2