Author Topic: World calMinDistance Issue  (Read 2639 times)

Offline Jakes

  • int
  • **
  • Posts: 63
    • View Profile
World calMinDistance Issue
« 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

Offline Jakes

  • int
  • **
  • Posts: 63
    • View Profile
Re: World calMinDistance Issue
« Reply #1 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

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: World calMinDistance Issue
« Reply #2 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

Offline Jakes

  • int
  • **
  • Posts: 63
    • View Profile
Re: World calMinDistance Issue
« Reply #3 on: August 31, 2020, 04:15:01 am »
Yes, thank you, it was missing that configuration

[Thread closed]