Search found 9 matches

by knightbenax
Fri Mar 08, 2013 11:45 pm
Forum: Questions and Help
Topic: A.I & Path Following In Bepuphysics
Replies: 5
Views: 5128

Re: A.I & Path Following In Bepuphysics

Thanks but could i get a sample code of how to use VariableLinearSpeedCurve, especially declaring it.
by knightbenax
Thu Mar 07, 2013 2:46 pm
Forum: Questions and Help
Topic: A.I & Path Following In Bepuphysics
Replies: 5
Views: 5128

Re: A.I & Path Following In Bepuphysics

Hi, i have able to fix the issue. Now i want to use CardinalSplineCurve3D for variable speed and movement through a path but i have no idea how to set the speed of the entity for a particular point.

All i see in the constructors is a time variable and the Vector3 point.

How can i set this?
by knightbenax
Thu Feb 28, 2013 3:25 pm
Forum: Questions and Help
Topic: A.I & Path Following In Bepuphysics
Replies: 5
Views: 5128

A.I & Path Following In Bepuphysics

Hi, i have two questions. First one, i am trying to get an a.i Vehicle entity yo drive around a track itself, i have my raycast all set up for navigating through the track and all. What i did was that once it detects through a raycast that its far away from the wall of the track it should rotate bac...
by knightbenax
Thu Feb 28, 2013 3:17 pm
Forum: Questions and Help
Topic: Performing A Proper RayCast From A Vehicle
Replies: 9
Views: 8088

Re: Performing A Proper RayCast From A Vehicle

Thanks a lot, tried it and it worked. :D

Thank you very much.
by knightbenax
Mon Feb 18, 2013 10:57 pm
Forum: Questions and Help
Topic: Performing A Proper RayCast From A Vehicle
Replies: 9
Views: 8088

Re: Performing A Proper RayCast From A Vehicle

I still can't find the distance of the ray between the ray starting position and where it intersects.

I've tried substracting their Vector3 positions, doesn't still give any thing meaningful

How can i find the distance of a ray?
by knightbenax
Thu Feb 14, 2013 9:02 pm
Forum: Questions and Help
Topic: Performing A Proper RayCast From A Vehicle
Replies: 9
Views: 8088

Re: Performing A Proper RayCast From A Vehicle

Thank you, i have being able to perform the raycast correctly, now i am having trouble getting the appropriate data from the RayCastResult value. What i need are the object the ray hit and the distance between. I saw the RayCastResult.HitObject, but it doesn't provide my any pointers as to the objec...
by knightbenax
Mon Feb 11, 2013 3:33 pm
Forum: Questions and Help
Topic: Performing A Proper RayCast From A Vehicle
Replies: 9
Views: 8088

Re: Performing A Proper RayCast From A Vehicle

How can i perform the RayCast using a ray, going from the right side of the Vehicle? Vector3.Right() doesn't seem to be working for me
by knightbenax
Sat Feb 09, 2013 8:36 am
Forum: Questions and Help
Topic: Performing A Proper RayCast From A Vehicle
Replies: 9
Views: 8088

Re: Performing A Proper RayCast From A Vehicle

Thank you very much for your speedy reply, I would try it and post my feedbacks
by knightbenax
Fri Feb 08, 2013 8:35 am
Forum: Questions and Help
Topic: Performing A Proper RayCast From A Vehicle
Replies: 9
Views: 8088

Performing A Proper RayCast From A Vehicle

Hello, i happpen to be running into a problem, i can seem to perform a proper raycast from the sides of a BEPUphysics Vehicle to the sides of a static mesh. It keeps returning the distance as zero. Wat am i doing wrong? Thanks in advance Here is my code snippet public ModelMesh leftRailings; if (mes...