Me = greedy. Can I use physics collision with 'normal' movement?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
togFox
Party member
Posts: 779
Joined: Sat Jan 30, 2021 9:46 am
Location: Brisbane, Oztralia

Me = greedy. Can I use physics collision with 'normal' movement?

Post by togFox »

I've used the love2d physics engine and I've also used 'normal' moving objects around with screen x/y.

I'd like to move an object around tiles (loosely) but then enjoy the collision detection and 'bump' characteristics the engine provides without applying vectors and newton forces etc.

Is it possible? Is that a disaster waiting to happen?
Current project:
https://togfox.itch.io/backyard-gridiron-manager
American football manager/sim game - build and manage a roster and win season after season
User avatar
pgimeno
Party member
Posts: 3549
Joined: Sun Oct 18, 2015 2:58 pm

Re: Me = greedy. Can I use physics collision with 'normal' movement?

Post by pgimeno »

Jeeper's tutorial series use custom physics with love.physics; maybe check them? https://love2d.org/forums/viewtopic.php?f=3&t=89706
User avatar
togFox
Party member
Posts: 779
Joined: Sat Jan 30, 2021 9:46 am
Location: Brisbane, Oztralia

Re: Me = greedy. Can I use physics collision with 'normal' movement?

Post by togFox »

Thanks. I'll check that out and do some experimenting.
Current project:
https://togfox.itch.io/backyard-gridiron-manager
American football manager/sim game - build and manage a roster and win season after season
User avatar
togFox
Party member
Posts: 779
Joined: Sat Jan 30, 2021 9:46 am
Location: Brisbane, Oztralia

Re: Me = greedy. Can I use physics collision with 'normal' movement?

Post by togFox »

So here is a physics object that is moving by me manipulating linearVelocity()

Image

I haven't tested collision detection or 'bump' physics - which is a key goal - but so far, I can move the object using straight forward physics without tracking and using hard screen co-ordinates/pixels.

(
The path is JUMPER and the boxes are obstacles (ignore that). If you squint you can see the tiled background that JUMPER is using. The white box is my mouse moving over tiles and those tiles being 'highlighted'.
)
Current project:
https://togfox.itch.io/backyard-gridiron-manager
American football manager/sim game - build and manage a roster and win season after season
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], dusoft, Majestic-12 [Bot] and 70 guests