Comments (1)
Interesting bug. The easy fix is just to call c->PointTranslate for drawPoint2 inside OnTick. At that point, the bug is no longer present, and the cursor always lines up with what actually gets drawn.
Right now you can adjust wind tool strength by moving your cursor to positions outside of the sim / tpt window, though. So I made a second function c->PointTranslateNoClamp which only adjusts for zoom window, but not for coordinates outside of the sim. This is probably what I'll end up with but it's late and I want to test some additional edge cases first and maybe adjust the cursor drawing to match what actually gets drawn.
from the-powder-toy.
Related Issues (20)
- how do you open the game do HOT 3
- Can someone put together a working MS Visual Studio project for TPT? HOT 1
- Add new elements HOT 6
- The border offset of the Textbox component in Lua is incorrect in the latest submission. HOT 2
- Request : update iOS app HOT 1
- (macOS) HTTP Error 600: Internal Client Error HOT 1
- add exe HOT 3
- .apk on f droid HOT 2
- custom android icon theming HOT 1
- FIGH health can go negative HOT 1
- I want to make multi-gpu accelerated parallel TPT HOT 3
- stamp error HOT 4
- Why Lithium does not conduct electricity? HOT 2
- E Clone HOT 2
- curl with mbedtls not working in my project,want some help ^_^ HOT 11
- Glue HOT 1
- Adding a link to the contribution guide on the github page HOT 4
- OPS savefiles (palette key) break BSON specification, preventing interoperability HOT 8
- Nvm this accidental wrong place HOT 1
- PSP 3000 powdersandbox version? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from the-powder-toy.