Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scripting Questions
#2
(13-09-2017, 05:11 AM)Parker Wrote: I am using parts of grappling hook to create rope.

********************************
How do you make sure the particles are turned on.  The obi Solver shows 0 particles.

********************************
When you are moving the end of rope, how do you FREEZE start/end prefab.  They tend to juggle around.

Is there a script that forces the object to follow the camera?

********************************

What is the best way to prevent wires from clipping through walls.

what about setting the obi collider thickness to 0.1?

Hi there,

I'm not quite sure I understand your questions, lets see:

1.- How do you make sure the particles are turned on.  The obi Solver shows 0 particles.
Under what circumstances? if your solver is not managing any actor, it will show 0 particles used. Also if your actor requires more particles that the "max particles" setting on the solver, it will not be able to manage that particular actor and show 0 particles used. (All of this supposing you've assigned a solver to at least some actor(s) in your scene).

2.-When you are moving the end of rope, how do you FREEZE start/end prefab.  They tend to juggle around.
Well, if by juggle you mean "twist", this is because ObiRope does not simulate torsion (twisting along the main rope axis) forces. Because of this, there's no control over twisting motion at any point of the rope. This is usually too expensive/unstable to calculate properly, and not that useful for games.

Note however that if you refer just to overall movement, this is to be expected since they follow the rope ends, to which they're attached.

3.- Is there a script that forces the object to follow the camera?
No, not included. You're supposed to write such simple things yourself Guiño

4.- What is the best way to prevent wires from clipping through walls.
Under normal circumstances, this should be achieved by just enabling collisions in your solver. Also avoid translating MeshColliders at runtime using their transform.
Reply


Messages In This Thread
Scripting Questions - by Parker - 13-09-2017, 05:11 AM
RE: Scripting Questions - by josemendez - 13-09-2017, 10:01 AM
RE: Scripting Questions - by Parker - 15-09-2017, 05:36 AM
RE: Scripting Questions - by josemendez - 15-09-2017, 08:14 AM
RE: Scripting Questions - by Parker - 15-09-2017, 01:34 PM
RE: Scripting Questions - by Parker - 16-09-2017, 07:25 PM
RE: Scripting Questions - by Parker - 16-09-2017, 10:23 PM