Page 2 of 2
Re: How should I implement physics using windshield?
Posted: Fri Oct 28, 2022 5:51 pm
by MaxGamz
Oh wow, that actually worked pretty well! May you explain why this new code works please?
Re: How should I implement physics using windshield?
Posted: Fri Oct 28, 2022 10:32 pm
by ReFreezed
According to the documentation collider:enter() and collider:exit() returns true the frame the contact with another collider starts and ends, respectively. Looking at the library code reveals that "Default" is the default collision class name for all colliders, so self.collider:enter("Default") currently returns true when the player collides with anything else (from any angle).