Breezefield: a lightweight windfield alternative (love.physics wrapper)

Showcase your libraries, tools and other projects that help your fellow love users.
TheHUG
Citizen
Posts: 61
Joined: Sun Apr 01, 2018 4:21 pm

Re: Breezefield: a lightweight windfield alternative (love.physics wrapper)

Post by TheHUG »

following viewtopic.php?f=4&t=86610 I've made another update - I've ensured breezefield doesn't export any global variables that could interfere with globals defined in the game.
TheHUG
Citizen
Posts: 61
Joined: Sun Apr 01, 2018 4:21 pm

Re: Breezefield: a lightweight windfield alternative (love.physics wrapper)

Post by TheHUG »

I've implemented queryEdgeArea and fixed some bugs with querying.
A-lox
Prole
Posts: 43
Joined: Sun Apr 10, 2022 1:58 am

Re: Breezefield: a lightweight windfield alternative (love.physics wrapper)

Post by A-lox »

how to make objects move in winfield
SugarRayLua
Citizen
Posts: 52
Joined: Sat Dec 03, 2022 7:52 pm

Re: Breezefield: a lightweight windfield alternative (love.physics wrapper)

Post by SugarRayLua »

Hi. I'm a newbie learning physics in Love2d and found both your Breezefield library and the Winfield library are great helps to simplify my coding.

Can Breezefield create angle rotated shapes like one can with this love.physics base command:

shape = love.physics.newRectangleShape( x, y, width, height, angle ) ?

It doesn't look like one can do that with the Winfield library but wasn't sure if it was possible in your Breezefield library.

Thanks!
TheHUG
Citizen
Posts: 61
Joined: Sun Apr 01, 2018 4:21 pm

Re: Breezefield: a lightweight windfield alternative (love.physics wrapper)

Post by TheHUG »

Hi, sorry for the late reply. `world:newCollider('Rectangle', {x, y, w, h, a})` would do the trick. Any args that would be passed to love.physics.<shape> can be put in that second argument.

A-lox, breezefield wraps existing love2d physics functionality. To move a Collider, you can use any method you can normally use from a Body, Fixture or Shape. For movement that would be things like setX, setY, setLinearVelocity, applyForce. See here: https://love2d.org/wiki/Body for all the various options.
SugarRayLua
Citizen
Posts: 52
Joined: Sat Dec 03, 2022 7:52 pm

Re: Breezefield: a lightweight windfield alternative (love.physics wrapper)

Post by SugarRayLua »

Thanks! 😊
Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests