|
Post by Xenomorph on Jan 17, 2011 12:08:30 GMT
Ok then, picked up working on my "Desolated" map again and got the following idea while doing so. I got this huge tree i want to hang a rope down from a branch with a cartire at the bottom. I allready watched this www.youtube.com/watch?v=lXhnDpAnLUA, only in my case its not a ragdoll but a prop_physics (the cartire) Ive been messing with it all morning allready only the movement just doesnt look right (tire is spinning like crazy while the rope barely moves) Somehow it might work when the ballsocket loses its smoothness, or the tire gets more mass. I took a sample map and took outthe stuff i didnt need, resulting in a object that moves just right imo. All i need to figure out is how to replace the big metal door with a cartire prop_physics. Here is what i described above: www.xs-chaos.co.uk/xeno/files/rope.zipThx allready for the help folks. ;D
|
|
|
Post by Zeph on Jan 17, 2011 12:53:50 GMT
For a rigid 'rope', connect the physics object to a Phys_BallSocket. For a non-rigid 'rope', connect the physics object to a point via a Phys_LengthConstaint. Getting this one work work is a little more complex. I believe you can attach it to a Info_Target and the Physics entity, where the Info_Target would be the tree branch. The "rope" does nothing. It's only there for looks. Tick the auto-resize flag though. You may need to create a small physbox on the end of the constraint, and then parent the physics prop (and the rope end) to the physbox. Similar to: www.halfwit-2.com/?page=tutorials&id=198
|
|
|
Post by Xenomorph on Jan 17, 2011 14:50:46 GMT
|
|
|
Post by Xenomorph on Jan 17, 2011 15:37:18 GMT
Ok i messed with it some more and took stuff from that sparkling wire example map you pointed out but without any luck so far. That wire has a small func_physbox at the bottom, as well as a phys_lengthconstraint and a phys_constraint. Not sure what the deal is with that rly
Also the thing is i cant parent the prop_physics cartire to anything at all, the option is just not there in hammer.
Once again it turns out im more a builder than a coder lol.
|
|
|
Post by Zeph on Jan 17, 2011 17:10:05 GMT
Only use one constraint else they fight with each other (needing a constraint manager). Length Constraint should be fine.
Try making it a prop_dynamic (which can be parented). If it doesn't show up or errors, try prop_dynamic_override.
|
|
|
Post by Xenomorph on Jan 17, 2011 19:17:17 GMT
Ok i did use the prop_dynamic_override but still it gives funny results as you can see on the right side in this vid i made: www.xs-chaos.co.uk/xeno/pics/desolated/wires.wmvThis is the file from this vid: www.xs-chaos.co.uk/xeno/pics/desolated/rope2.zipHope thats any help to you Zeph since i got the feeling im doing it right but the result just isn't good enough for me. I still like the movement of the big object in the middle the most, now if i only could replace that with a tire lol.
|
|
|
Post by Zeph on Jan 18, 2011 0:25:30 GMT
Try making the tire more weighty (or the physbox) so it pull it down a bit more.
There should be a weight multiplier for the physbox at least.
|
|
|
Post by Xenomorph on Jan 19, 2011 23:17:44 GMT
Roight messed with it some more but still not the desired effect :/ I guess its to much asked of the source engine to attach their own props with a predefined mass to a rope and make the movement look realistic when you shoot, run into, gravgun it? The only thing that reacts and looks ok is theglass thingy i made in the middle ofthe vid. The other 2 the tire just to its own posessed plan and doesnt care its hanging down a wire at all. Mayebe ill just make it swing a bit on a fixed path left to right like i did in Outpost 4 and not make it interactive at all. Otherwise i dun see this ever working out as desired.
|
|
|
Post by Zeph on Jan 20, 2011 0:01:51 GMT
Have a look at this. Attachments:
|
|
|
Post by Xenomorph on Jan 20, 2011 12:02:40 GMT
Thx m8 it moves perfectly now ;D One thing i wonder is why the lengthconstraint isnt all the way down the rope tho. Its still pretty frustrating i have to fool around with it a whole morning and 4 nights and you do it in just one lol. You got ur name mentioned into another map as well of course Thx again!
|
|
|
Post by Zeph on Jan 20, 2011 12:29:52 GMT
Try moving the length constraint (resetting the white helper node to the roof each time) to different positions, EG: - Centre of the Tire - Top of the Tire - Above the Tire (as it currently is)
You will see that at the centre of the tire, it very close to the centre of gravity of the object, and therefore it can freely spin around this point. By moving it further away from the centre of gravity, it slows it's movements since it's weighted to one side (ie down), adding some rigidity to it's movements. It's like increasing the length of the string with a weight on the end. Long string, slower swing.
Or Imagine the tire has a pole through it, sticking out one end. You tie that end to a rope (the length constrain in current position). The tire will rotate around that connection point at a distance of the length of the rigid pole.
Meh, its just pendulums.
And if it helps, it took me like 30 minutes late at night before going to bed. Had to really drag myself to do it too!
|
|
|
Post by Xenomorph on Jan 20, 2011 19:45:42 GMT
Ah that clears alot up then. Its just that the actual rope you see is allways connected from start to end, so you cant see what happens halfway Roight so now i can concentrate on what im going to fill the open space behind the house then. Thinking about a big barn or something... Neways thx again m8 ;D
|
|
|
Post by Zeph on Jan 20, 2011 23:11:31 GMT
You're welcome as always.
|
|
|
Post by Zeph on Jan 23, 2011 15:13:01 GMT
|
|