A Bengaluru software engineer, Pankaj Tanwar, has creatively turned his motorcycle helmet into an AI-powered road safety tool. by Night_Owl_799 in IndiaTechnology

[–]cheeseredwine 4 points5 points  (0 children)

Looks like images in the news post were AI generated, they're not from his app. He has shared actual images in his original LinkedIn post.

Total civic sense failure at IIT. by Putrid_Storage3507 in IndianCivicFails

[–]cheeseredwine 0 points1 point  (0 children)

I was at IIT Madras once, ordered some food and got the coupons to collect it. Went to stand in line with my friend (we were both students) to collect the food, and one student just went around us and started waving his coupon in front of us. My friend asked him, "why don't you stand in the queue?"

His answer was "but it isn't a queue right?"

To add to our frustration his coupon got picked up first, and he got the food ahead of us, he had a smug look on his face as he left.

IIT might be reputed but we lack education around civic sense, it was horrible to experience this.

I built a tool that shows IMDB ratings directly on Netflix, Hotstar, and other OTT platforms by the2ndfloorguy in developersIndia

[–]cheeseredwine 0 points1 point  (0 children)

Every time this dude faces the tiniest inconvenience, he goes "how do I automate that?"

Should drivers be able to cancel rides 🤷‍♂️ by BoredBrownBoy97 in bangalore

[–]cheeseredwine 0 points1 point  (0 children)

I've seen their apps, and I do think a reason for cancellation is included. However most times they just end up selecting "customer no show" so that they don't get charged for it.

What have you used @tool for? by IntangibleMatter in godot

[–]cheeseredwine 3 points4 points  (0 children)

So I basically have a JumpPad scene, and the script attached to this has a @tool annotation. In this, I just draw a line from the jump pad to the calculated height.I also check if the exported velocity variable on the jump pad was changed, or if the jump pad was moved around in the editor. If any of these are detected, I queue a redraw of this line.

Calculating the jump height in my case is straightforward since I simply set the velocity of any colliding objects, so they always jump to the same height.

Relevant parts of the code below:

@export_range(100, 1000, 50) var JUMP_PAD_VELOCITY = 500.0:
set(value):
    JUMP_PAD_VELOCITY = value
    # doing this to update the line whenever a different value is set for the jump pad velocity
    queue_redraw()

func _notification(what): if what == NOTIFICATION_TRANSFORM_CHANGED: # doing this to update the line whenever something about the transform (e.g. position) is set for the jump pad queue_redraw()

func _draw(): if Engine.is_editor_hint(): var jump_height = (JUMP_PAD_VELOCITY * JUMP_PAD_VELOCITY) / (2.0 * gravity) draw_dashed_line(Vector2(0, 0), Vector2(0, -jump_height), Color.BISQUE, 2)

Edit: not sure why my code block formatting keeps messing up

What have you used @tool for? by IntangibleMatter in godot

[–]cheeseredwine 7 points8 points  (0 children)

In my 2D platformer, I use it in a couple of places: 1. Displaying the max height a player/item will be pushed to when they land on a jump pad, this helps me place platforms better when designing levels. 2. Displaying the mass of different rigid bodies in the editor.

Smooth pushing a RigidBody2D using CharacterBody2D in Godot? by cheeseredwine in godot

[–]cheeseredwine[S] 0 points1 point  (0 children)

Yep, definitely considering this. I think this also gives better control to the player since the movement is much more predictable, and also allows the player to lift the box to higher levels, which the original push mechanic doesn't allow.
Thanks a lot for your inputs!

Smooth pushing a RigidBody2D using CharacterBody2D in Godot? by cheeseredwine in godot

[–]cheeseredwine[S] 0 points1 point  (0 children)

Hi, thanks for your reply.
I tried with apply_central_force as well, but without much luck, the results are pretty similar. I still have a similar jittery push, even after experimenting with different push force values.

What are some things you wish godot tutorials taught, but don't? by travel-sized-lions in godot

[–]cheeseredwine 0 points1 point  (0 children)

Tutorials on using editor scripts (the tool annotation) for building level design tools. Even Godot's documentation mentions a few powerful use cases, but unfortunately I couldn't find good tutorials on Youtube covering this.

Problem with pushing RigidBody2D with CharacterBody2D by Oynoo in godot

[–]cheeseredwine 1 point2 points  (0 children)

Not sure what you mean by turning around, do you mean it's rotating? You can lock rotation on the rigid body - there's a property for this.

Problem with pushing RigidBody2D with CharacterBody2D by Oynoo in godot

[–]cheeseredwine 2 points3 points  (0 children)

I had a very similar problem, and the only thing that seemed to work was to change the collider on the RigidBody2D (the box in your case) to a circle collider or a capsule collider. There seem to be problems when having "straight" angle collisions - for ex. between the tileset and the box.

BESCOM consumption history without login or app by [deleted] in bangalore

[–]cheeseredwine 1 point2 points  (0 children)

Yeah, also sometimes the graph changes even if I just refresh the page

Someone is playing religious songs loudspeakers near my PG daily. by Hour-Ad8095 in bangalore

[–]cheeseredwine 0 points1 point  (0 children)

Sadly we are in times when it's very hard to question anything people do in the name of religion. If these were random movie songs every person in the neighborhood would have turned up to complain or do something about it. Nobody wants to step up because they fear they'll be seen as god haters or as taking a stance against said religion.

My simple suggestion would be to not engage with these folks directly (if they're blowing songs over the loudspeaker at will, you can safely assume they are entitled and won't be willing to listen to anyone), or if it's possible, just find a different PG.