www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: Jakes on August 25, 2020, 07:03:10 pm

Title: World calMinDistance Issue
Post by: Jakes on August 25, 2020, 07:03:10 pm
Hello,

I've been trying out the World.calcMinDistance method but nothing was returned (the value COLLISION_NONE), and when trying the same method from on object from that world, it yields out a distance. Shouldn't the first one work when the object returns a value?

Regards,
Jakes
Title: Re: World calMinDistance Issue
Post by: Jakes on August 25, 2020, 08:12:27 pm
Mostly because I want to have a way of picking objects from the world using the cursor and this seems to be the only way.

furthermore, is there any way of picking a group of objects inside a view plane? like a rectangle selection?

Regards,
Jakes
Title: Re: World calMinDistance Issue
Post by: EgonOlsen on August 26, 2020, 07:31:23 am
One difference between these methods is, that the one world requires the objects to the set as colliders while the one in Object3D doesn't. Maybe that's the issue. See: http://www.jpct.net/wiki/index.php?title=Picking (http://www.jpct.net/wiki/index.php?title=Picking)
Title: Re: World calMinDistance Issue
Post by: Jakes on August 31, 2020, 04:15:01 am
Yes, thank you, it was missing that configuration

[Thread closed]