lua.wetgenes.bullet.world.ray_test
local test={
mode="closest",
ray={{}0,0,0,{1,1,1}},
}
test=world:ray_test(test)
if world:ray_test(opts).hit then ... end
Perform a ray test between the two ray vectors provided in the test table. fills in hit={...} if we hit something with details of the hit.
Always returns the test table that was passed in, with modifications that provide the result. Be carefull about reusing this table it is safest to create a new one for each ray_test call.