Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Particle Dragger Inaccurate
#6
(22-05-2024, 10:04 PM)djones2 Wrote: the particle dragger it doesnt drag on specific particles that are shown (particle renderer is enabled), is it because of the raycast from screen point.

Hi,

Not sure what you mean, the ray is of course cast from a point in the screen (where the mouse cursor is). Then the particle under it is picked, and dragged behind the cursor using a spring force. Here's a screenshot of it in one of the sample scenes: As you can see the green picking line that visualizes the spring between the cursor and the picked particle goes exactly from the position of the cursor to the center of the particle you clicked on:

[Image: vCCkJ8f.png]

From your wording, it seems like this is not at all what you are experiencing and/or expecting. Could you describe the issue more precisely?

Keep in mind that the particle dragger acts as a spring: it will drag the particle along the mouse cursor using a spring force (similar to Unity's distance joint), it won't just position the particle directly under the cursor every frame. If you're looking for a stiffer spring, you can adjust the spring's stiffness and damping parameters in the ObiParticleDragger component. Or if you're not looking for a spring-based solution at all, you can write your own component that sets the particle positions directly using the particles API.

kind regards
Reply


Messages In This Thread
Particle Dragger Inaccurate - by djones2 - 20-05-2024, 08:55 PM
RE: Particle Dragger Inaccurate - by josemendez - 21-05-2024, 07:50 AM
RE: Particle Dragger Inaccurate - by djones2 - 21-05-2024, 10:20 PM
RE: Particle Dragger Inaccurate - by josemendez - 22-05-2024, 07:42 AM
RE: Particle Dragger Inaccurate - by djones2 - 22-05-2024, 10:04 PM
RE: Particle Dragger Inaccurate - by josemendez - 23-05-2024, 08:31 AM