[C++, DX9] NewtonWorldRayCast() doesn't work correctly

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Re: [C++, DX9] NewtonWorldRayCast() doesn't work correctly

Postby Carli » Sat Jul 03, 2010 10:34 am

Code: Select all
the means that the origin is below the destination, I doubt you map is about the origin of the ray.


What is "below"?
For my bug: when i swap p0 and p1, you mean it should work?

or does the ray start have to be not inside a collision?
Carli
 
Posts: 245
Joined: Fri Oct 02, 2009 5:28 am

Re: [C++, DX9] NewtonWorldRayCast() doesn't work correctly

Postby JernejL » Sat Jul 03, 2010 10:49 am

Ray start can be in a collision, but it won't detect that shape, since it's a DIRECTIONAL ray, and it doesn't ever detect "inside faces" / faces with normal pointing away from the ray.
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1587
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: [C++, DX9] NewtonWorldRayCast() doesn't work correctly

Postby Carli » Sat Jul 03, 2010 11:00 am

But there is still a bug with my bird.

under linux64 and win32 there are unwished results and under linux32 it crashes.
Carli
 
Posts: 245
Joined: Fri Oct 02, 2009 5:28 am

Re: [C++, DX9] NewtonWorldRayCast() doesn't work correctly

Postby Julio Jerez » Sat Jul 03, 2010 2:14 pm

you are setting to 2.0 but in you own exe, teh exe you send me does no do that so I can no debu teh ray because in teh call back is return teh last hit point.
you need to fix that and post the exe so that I can chek what it is tha is making ot fail.

I can not do it because I do not have VS2010, and It take too lokn to set it just for that.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: [C++, DX9] NewtonWorldRayCast() doesn't work correctly

Postby kallaspriit » Mon Jul 05, 2010 4:16 pm

You talked about how expensive VS2010 is in some thread, can't you just use the free express edition? I'm using it with OgreNewt and got no problems, don't need all the bells and whistles of the commercial version :)
kallaspriit
 
Posts: 216
Joined: Sun Aug 14, 2005 6:31 pm

Re: [C++, DX9] NewtonWorldRayCast() doesn't work correctly

Postby Stucuk » Mon Jul 05, 2010 6:18 pm

He would still have to download, install it, Install libraries to it, setup your project to work with his directories, etc when you could just send him an exe which does what he asks far quicker. All he needs is the exe but where the distance is set each time before the raycast is called.
User avatar
Stucuk
 
Posts: 801
Joined: Sat Mar 12, 2005 3:54 pm
Location: Scotland

Re: [C++, DX9] NewtonWorldRayCast() doesn't work correctly

Postby Julio Jerez » Mon Jul 05, 2010 7:50 pm

That is correct, however VS2010 is not a lighweight tool, it changes lot of your system setting plus it take lot of space.
I am no ready to do VS2010 yest, I am kind of skippint one vertion,
I had 2003, 2008, maybe I will get 2011.
for what I can see VS2010 is a Ptach for 2008 , not really new features, and the one in are not really for prime time.
Rafactoring is not smart enought to recomend safe changes. and the one it recomend are pedante, that do not really translate to better code.
I tryied once and it left me with a sour taste.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Previous

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron