Search found 12 matches

by siberian
Thu Oct 29, 2020 5:28 am
Forum: Support and Development
Topic: 2d collision with rotated pictures
Replies: 12
Views: 6185

Re: 2d collision with rotated pictures

so the main idea is to check if a dot from one of these polygon is inside the other one, is'nt it ? Sorry, it's hard for me to explain it in English. If you want to check if the two boxes intersect, then you need to check if the center of the first object is included in the polygon obtained as a Mi...
by siberian
Wed Oct 28, 2020 7:55 am
Forum: Support and Development
Topic: 2d collision with rotated pictures
Replies: 12
Views: 6185

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: 3652

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: 3356

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: 3356

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. "When...
by siberian
Sun Aug 23, 2020 4:45 am
Forum: Support and Development
Topic: black screen
Replies: 2
Views: 1178

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: 9625

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: 751

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: 1004

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: 863

Re: Text Collision

You can use drawable text
https://love2d.org/wiki/Text