Search found 12 matches
- 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...
- 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...
- 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
- 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.
- 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...
- 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?
- 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?
But why are you recreating the scene in every frame?
- 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".
Try "darken", not "darker".
- 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
with this
or you can set next index like this
Code: Select all
if (next == #vertices) then
with this
Code: Select all
if (next > #vertices) then
Code: Select all
next = (current < #vertices) and current + 1 or 1
- 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
https://love2d.org/wiki/Text