Search found 21 matches

by siberian
Wed Oct 28, 2020 7:55 am
Forum: Support and Development
Topic: 2d collision with rotated pictures
Replies: 12
Views: 12065

Re: 2d collision with rotated pictures

May be will be usefull. The main idea is to get the sum of the 2 shapes (hull). If the center of an object is inside a hull, the objects are intersecting. In motion, check the intersection of the hull with a segment from the center of the moved object to its destination point. https://love2d.org/for...
by siberian
Thu Oct 08, 2020 5:37 am
Forum: Games and Creations
Topic: Collisions and images
Replies: 8
Views: 8672

Re: Collisions and images

Maybe this sample can help
by siberian
Tue Sep 01, 2020 4:08 pm
Forum: Support and Development
Topic: Question about Threads
Replies: 5
Views: 5624

Re: Question about Threads

I added a second option into my answer, it's simpler.
by siberian
Tue Sep 01, 2020 4:00 pm
Forum: Support and Development
Topic: Question about Threads
Replies: 5
Views: 5624

Re: Question about Threads

You can use math.random() local threadCode = [[ local count = ... count = count or 1 math.randomseed(os.time()) for i = 1, count do print(math.random(10)) end ]] local th function love.load() th = love.thread.newThread( threadCode ) th:start(10) end or add require 'love.math' into thread code. "...
by siberian
Sun Aug 23, 2020 4:45 am
Forum: Support and Development
Topic: black screen
Replies: 2
Views: 2274

Re: black screen

Where is love.draw() function?
by siberian
Tue Aug 11, 2020 2:40 am
Forum: Libraries and Tools
Topic: [Library] A simple 3D scene renderer
Replies: 11
Views: 16268

Re: [Library] A simple 3D scene renderer

Nice!
But why are you recreating the scene in every frame?
by siberian
Mon Jul 13, 2020 11:25 am
Forum: Support and Development
Topic: Error with 'The multiply blendmode'
Replies: 1
Views: 1796

Re: Error with 'The multiply blendmode'

Hello.
Try "darken", not "darker".
by siberian
Wed May 20, 2020 4:57 pm
Forum: Support and Development
Topic: [SOLVED]2D polygon collision detection cant index table vertices
Replies: 2
Views: 3062

Re: 2D polygon collision detection cant index table vertices

Try to replace

Code: Select all

if (next == #vertices) then

with this

Code: Select all

if (next > #vertices) then
or you can set next index like this

Code: Select all

next = (current < #vertices) and current + 1 or 1 
by siberian
Wed May 20, 2020 4:34 am
Forum: Support and Development
Topic: Text Collision
Replies: 2
Views: 2246

Re: Text Collision

You can use drawable text
https://love2d.org/wiki/Text
by siberian
Tue Jan 28, 2020 4:40 am
Forum: Libraries and Tools
Topic: Groverburger's 3D Engine (g3d) v1.5.2 Release
Replies: 218
Views: 491988

Re: Groverburger's Super Simple 3D Engine - v1.3

JJSax wrote: Sun Jan 26, 2020 5:29 am I created a simple sphere in blender and am trying to use it in my scene. Half the triangle faces are missing however. Anyone know how to fix this?
Maybe you doesn't check "Triangulate Faces" in Export options?