Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Get position of particle by script
#7
(29-03-2018, 11:32 PM)usernameHed Wrote: Hello ! it's me again, sorry to bother you Triste
I'm staying in this topic, because this is linked to my previous question.

Here a video of my current setup:

https://www.youtube.com/watch?v=bcb6bsxZ...e=youtu.be

I have 2 player, with rigidbody. In the video, for testing, the red player is kinematic, and I can move the blue player.
As you see, I get the particle position to get the vector direction, and then with a cross product, I can know in which direction to go when pressing left / right. Great Sonrisa


But now, a problem: from know, the rope where fine, but in this particulare move: the rope is too stretchy.

here is my question: My Rope is perfect right now, but whenever in my game I am in a certain mode (like in the video), I want to setup my rope as "non stretchy at all". I want to be able to rotate around my player, but keep always the same distance.

(MayBe setup a ConfigurableJoint with the right setup ?)

I ask a question in GameDeveloppment where I ask how to setup a ConfigurableJoint like that:
https://gamedev.stackexchange.com/questi...otating-it

Well, hopeĀ I don't bother you with all my question. Thanks you !

Here my rope setup:
[Image: HCDwF3TcwYl_Capture2.PNG]

[Image: HCDwENGYhEl_Capture.PNG]

Completely non stretchy rope is not possible to achieve, that would require infinite amount of iterations. But changing the distance constraints update mode from parallel to sequential will help you a great deal Sonrisa.

Also, reducing the physics timestep will also help a lot (ProjectSettings->Time->fixed timestep)
Reply


Messages In This Thread
RE: Get position of particle by script - by josemendez - 30-03-2018, 03:18 PM