{"action":"created","issue":{"url":"https://api.github.com/repos/a-jie/Proton/issues/58","repository_url":"https://api.github.com/repos/a-jie/Proton","labels_url":"https://api.github.com/repos/a-jie/Proton/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/a-jie/Proton/issues/58/comments","events_url":"https://api.github.com/repos/a-jie/Proton/issues/58/events","html_url":"https://github.com/a-jie/Proton/issues/58","id":355143560,"node_id":"MDU6SXNzdWUzNTUxNDM1NjA=","number":58,"title":"How to create a Force at a particular position?","user":{"login":"jliebrand","id":23407884,"node_id":"MDQ6VXNlcjIzNDA3ODg0","avatar_url":"https://avatars3.githubusercontent.com/u/23407884?v=4","gravatar_id":"","url":"https://api.github.com/users/jliebrand","html_url":"https://github.com/jliebrand","followers_url":"https://api.github.com/users/jliebrand/followers","following_url":"https://api.github.com/users/jliebrand/following{/other_user}","gists_url":"https://api.github.com/users/jliebrand/gists{/gist_id}","starred_url":"https://api.github.com/users/jliebrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jliebrand/subscriptions","organizations_url":"https://api.github.com/users/jliebrand/orgs","repos_url":"https://api.github.com/users/jliebrand/repos","events_url":"https://api.github.com/users/jliebrand/events{/privacy}","received_events_url":"https://api.github.com/users/jliebrand/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-08-29T12:46:36Z","updated_at":"2018-08-30T07:33:23Z","closed_at":null,"author_association":"NONE","body":"Hi there - first of all: amazing library! It's a little hard to spot all the potential (hence this issue for example) without more documentation, but it's clear that you've built some really powerful concepts that when put together should be able to achieve just about anything; so kudos!\r\n\r\nOn to my particular question: I'm trying to build a simple wind animation of particles. What I have is a grid of wind data, so for example imagine on a canvas of 1000x1000 that I would have points at every 100x and 100y. For each point, I have the U and V components of the wind; ie the fx and fy for particles.\r\n\r\nSo for Proton, I figured it should be easy if I could add a behaviour similar to a GravityWell, but then for a particular force (rather than just gravity).  Eg Proton.ForcePosition(targetPos.x, targetPos.y, fx, fy). \r\n\r\nBut the Force behaviour only has fx and fy... no position?  Is there a way to combine PointZones with the Force behaviour to achieve what I'm trying to do here? \r\n\r\n(eg so that the particles flow through the canvas similar to windy.com for example)"},"comment":{"url":"https://api.github.com/repos/a-jie/Proton/issues/comments/417219472","html_url":"https://github.com/a-jie/Proton/issues/58#issuecomment-417219472","issue_url":"https://api.github.com/repos/a-jie/Proton/issues/58","id":417219472,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzIxOTQ3Mg==","user":{"login":"jliebrand","id":23407884,"node_id":"MDQ6VXNlcjIzNDA3ODg0","avatar_url":"https://avatars3.githubusercontent.com/u/23407884?v=4","gravatar_id":"","url":"https://api.github.com/users/jliebrand","html_url":"https://github.com/jliebrand","followers_url":"https://api.github.com/users/jliebrand/followers","following_url":"https://api.github.com/users/jliebrand/following{/other_user}","gists_url":"https://api.github.com/users/jliebrand/gists{/gist_id}","starred_url":"https://api.github.com/users/jliebrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jliebrand/subscriptions","organizations_url":"https://api.github.com/users/jliebrand/orgs","repos_url":"https://api.github.com/users/jliebrand/repos","events_url":"https://api.github.com/users/jliebrand/events{/privacy}","received_events_url":"https://api.github.com/users/jliebrand/received_events","type":"User","site_admin":false},"created_at":"2018-08-30T07:33:23Z","updated_at":"2018-08-30T07:33:23Z","author_association":"NONE","body":"Sorry, yes my ramblings didn't make a lot of sense :-)\r\n\r\nBasically I have gridded data, which indicates for each grid point how the wind is blowing (direction and strength). Here's a visualisation:\r\n\r\n![saildocscurrent](https://user-images.githubusercontent.com/23407884/44836522-188af380-ac2f-11e8-9013-d652b0cb8e29.jpg)\r\n\r\nWhat I wanted to do, was add a Behaviour for each of those grid points, which will apply a force on the particles in the direction and strength of the wind. Which would then ultimately make the particles \"flow\" through the space like the wind ought to. Which should show up something like this:\r\n\r\n![image](https://user-images.githubusercontent.com/23407884/44836568-39ebdf80-ac2f-11e8-83f5-a56bc3393473.png)\r\n\r\n(You can see a working example (not using proton) of it here: https://earth.nullschool.net/#current/wind/surface/level/orthographic=-34.48,51.60,1503)\r\n"}}
{"actor":{"display_login":"jliebrand"}}