DrChat / Gmod-vphysics

Replacement vphysics module for the Source engine (originally meant for Garry's Mod)
Other
92 stars 15 forks source link

Sliders sometimes get created 90 degrees from what they should be #41

Open jombo23 opened 10 years ago

jombo23 commented 10 years ago

I cant really nail this down, but a good way to make it happen yourself is to shoot down a thruster on a sloped surface and then try to slider it to said sloped surface.

both points of the slider are created in the same spot, instead of the second spot you clicked., and slide 90 degrees out from what they should.

DrChat commented 10 years ago

Are you creating the slider with a straight up/down slide axis?

jombo23 commented 10 years ago

No, those work perfectly fine.

I think its something to do when it gets spawned with the thruster tool and you slider it when its welded or frozen or something and the slider is on an angle. I posted a video on the forum of what i was talking about a couple days ago but then i got banned for a couple days for some other reason

DrChat commented 10 years ago

Okay. I can see the weird behavior but I need to know how they are supposed to work when created properly. Also, show me how you're creating them (your explanation on FP is super confusing)

jombo23 commented 10 years ago

Take any size cube from PHX or sprops

Grab it with the physgun and rotate it 45 degrees so every side is a 45 degree angle, except the front and back.which are flat. Basically just grab it and roll it 45 degrees.

Open up the thruster tool, if you have the wiremod one, use that, but it isnt wiremod specific.

Pick any model from the list, ive been using the small cube. Thrust and all other settings dont matter.

Put a couple thrusters on two sides of the block, like pistons on a motor.

Using the slider tool, shoot the top of one thruster, and attach it to the same point on the opposite side of the main cube, allowing the thruster to slide up and down like a piston on an angle.

repeat last step for the rest of thrusters

grab the weld tool, look at the main cube and hit R to remove all weld constraints from the cube, allowing the thrusters to actually slide on the sliders because the thruster tool welds the thruster to the object that you shoot them on to.

unfreeze everything, the thrusters should turn 90 degrees and then the sliders should fall like they did in the video rather than moving towards the other end of the slider on the opposite side of the cube.

So i did a bit more research. I took the motor that i used in the video, which had been created under bullet physics, and opened it under the standard vphysics. When i pasted it down, there were twice as many sliders as there should have been, and half of them were broken.

What i mean by this is when i pasted it down using advanced duplicator 2, it gave me 8 warnings (there were 8 thrusters) saying that a slider constraint couldnt be created for some reason. However, the dupe worked fine, leading me to believe that even though i only put one slider on each thruster, multiple sliders were created.

This is the best i can explain it. If you want, tell me and ill post a couple minute long video of me doing exactly what i just tried to explain to you.

Thanks

DrChat commented 10 years ago

Okay, I am totally not reproducing this issue. Does this happen when you paste a duplication only or also when you create it from scratch? Can you please post the video of you creating this from scratch and it happening, and also enable the debug overlay (vphysics_renderoverlay) and no depth test (vphysics_overlay_nodepthtest)

jombo23 commented 10 years ago

Both and yes. In an hour or two when I get home I'll record a video with voice to explain exactly what I am doing.

DrChat commented 10 years ago

Yeah, I'm still confused. Create it from scratch in the video with the overlay on and no depth test on

jombo23 commented 10 years ago

Video here

https://dl.dropboxusercontent.com/u/96179710/videos/quad%20%2831%29.mp4

also just realized theres no sound.

Also if you read this before someone else replies, the last guy on facepunch said that gravity feels low, you should inform him that its because hes got his tickrate set at 33 instead of 66 which a lot of servers do to lessen the load on the cpu. There was an issue report on this in the past as it doesnt slow down the physics with the normal physics.

DrChat commented 10 years ago

Okay, I still can't reproduce this issue. It looks like there are 2 different slider constraints being created in the same spot which is screwing it up. Try switching to completely vanilla gmod and see if you can still make this issue happen.

jombo23 commented 10 years ago

Vanilla with bullet? Because it doesn't happen with normal physics

DrChat commented 10 years ago

Yes.

jombo23 commented 10 years ago

Will do, I'll be home in 3or4 hours. I gotta makeed lights. I really really hope that it still happens though. If the tools work with normal Physics but not with bullet, obviously there's something up with something. The only thing I used that isn't vanilla is the smart snap tool which gives you a grid to have accuracy on. Maybe it used a exploit in vphysics or something

jombo23 commented 10 years ago

Aaand it appears it was the smartsnap tool.

So its probably doing something pretty hacky. This is another one of those "everyones doing it" type issue, so i guess you gotta decide if you want to jump off that cliff.

I like my analogy.

Also sorry for asking you to post for me. a little over 2 days from now and ill be good.

DrChat commented 10 years ago

Okay. Can you figure out why it does this, and also how valve's vphysics isn't screwing up in this configuration? Gonna leave it open because valve's vphysics isn't having this issue.