I'm trying to use ray castintersect to send it to any direction I want, but it doesent seem to work
i using this
example:
Var
raystart,
rayvector,
ipoint: TVector;
begin
raystart := VectorMake(Object.Position.AsVector);
rayvector := VectorMake(X, Y, Z);
if ObjectA.RayCastIntersect(raystart, rayvector, @ipoint)
then -> Create an Object at ipoint position
But it always result false and I doesnt work, how can I use this to shoot it to any direction I want?
thks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
I'm trying to use ray castintersect to send it to any direction I want, but it doesent seem to work
i using this
example:
Var
raystart,
rayvector,
ipoint: TVector;
begin
raystart := VectorMake(Object.Position.AsVector);
rayvector := VectorMake(X, Y, Z);
if ObjectA.RayCastIntersect(raystart, rayvector, @ipoint)
then -> Create an Object at ipoint position
But it always result false and I doesnt work, how can I use this to shoot it to any direction I want?
thks