(SOLVED!) Object dangling from a string
Jul 21, 2009 10:14:44 GMT
Post by 3kliksphilip on Jul 21, 2009 10:14:44 GMT
I didn't find this fix. Thanks goes to...
'This was written by: *sixsixtysix* and edited for easier understanding: LTUMr13A'
Introduction:
This tutorial will allow you hang props or physboxes from ropes. It is is a workaround for a known rope issue is Counter-Strike: Source. The issue being that you can't give a keyframe_rope a parent or else it will go to the map's origin (0,0,0) in-game.
The entities that we'll be using:
A. move_rope
B. keyframe_rope
C. phys_lengthconstraint
D. env_spark
E. func_physbox or prop_physics (for this we'll use a func_physbox)
F. logic_measure_movement
Placing the entities:
A. Place the func_physbox wherever you'd like it to be hanging from.
B. Place the move_rope wherever you'd like your rope to start from.
C. Place the keyframe_rope just inside the object you're hanging.
D. Place the phys_lengthconstraint in the same place as the keyframe_rope. Select and drag the small white circle (THAT IS JUST INSIDE THE LENGTHCONSTRAINT YOU'LL FIND IT)to the move_rope's position (EXACTLY IN THE MIDDLE OF THE MOVE_ROPE).
E. Place the env_spark in the same place as the lengthconstraint is as well.
F. Place the logic_measure_movement off to the side for easy access in the editor.
Naming the entities:
A. It's best if you give all the entities related names. For this tutorial, we'll use "tyre".
B. Fill in your names like this: func_physbox = tyre, move_rope = tyre_rope, keyframe_rope = tyre_keyframe, and env_spark = tyre_spark (no need to name the phys_lengthconstraint unless you're using a phys_constraintsystem or somesuch).
Filling in the entities' information:
A. Set move_rope's Next KeyFrame to tyre_keyframe.
B. Set env_spark's Parent to tyre.
C. Set phys_lengthconstraint's Entity 1 to tyre.
D. Set logic_measure_movement's Entity to Measure to tyre_spark, Measure Reference to tyre_rope, Entity to Move to tyre_keyframe, and Movement Reference to tyre_rope.
Final words:
Well, there you go. You should now be able to hang a func_physbox or prop_physics from a rope and have them both moving around in Counter-Strike: Source.
'This was written by: *sixsixtysix* and edited for easier understanding: LTUMr13A'
Introduction:
This tutorial will allow you hang props or physboxes from ropes. It is is a workaround for a known rope issue is Counter-Strike: Source. The issue being that you can't give a keyframe_rope a parent or else it will go to the map's origin (0,0,0) in-game.
The entities that we'll be using:
A. move_rope
B. keyframe_rope
C. phys_lengthconstraint
D. env_spark
E. func_physbox or prop_physics (for this we'll use a func_physbox)
F. logic_measure_movement
Placing the entities:
A. Place the func_physbox wherever you'd like it to be hanging from.
B. Place the move_rope wherever you'd like your rope to start from.
C. Place the keyframe_rope just inside the object you're hanging.
D. Place the phys_lengthconstraint in the same place as the keyframe_rope. Select and drag the small white circle (THAT IS JUST INSIDE THE LENGTHCONSTRAINT YOU'LL FIND IT)to the move_rope's position (EXACTLY IN THE MIDDLE OF THE MOVE_ROPE).
E. Place the env_spark in the same place as the lengthconstraint is as well.
F. Place the logic_measure_movement off to the side for easy access in the editor.
Naming the entities:
A. It's best if you give all the entities related names. For this tutorial, we'll use "tyre".
B. Fill in your names like this: func_physbox = tyre, move_rope = tyre_rope, keyframe_rope = tyre_keyframe, and env_spark = tyre_spark (no need to name the phys_lengthconstraint unless you're using a phys_constraintsystem or somesuch).
Filling in the entities' information:
A. Set move_rope's Next KeyFrame to tyre_keyframe.
B. Set env_spark's Parent to tyre.
C. Set phys_lengthconstraint's Entity 1 to tyre.
D. Set logic_measure_movement's Entity to Measure to tyre_spark, Measure Reference to tyre_rope, Entity to Move to tyre_keyframe, and Movement Reference to tyre_rope.
Final words:
Well, there you go. You should now be able to hang a func_physbox or prop_physics from a rope and have them both moving around in Counter-Strike: Source.