How should I implement physics using windshield?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: How should I implement physics using windshield?
Oh wow, that actually worked pretty well! May you explain why this new code works please?
Re: How should I implement physics using windshield?
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).
Tools: Hot Particles, LuaPreprocess, InputField, (more) Games: Momento Temporis
"If each mistake being made is a new one, then progress is being made."
"If each mistake being made is a new one, then progress is being made."
Who is online
Users browsing this forum: Bing [Bot] and 9 guests