Jump to content

  • Log In with Google      Sign In   
  • Create Account

lucky6969b

Member Since 06 Apr 2007
Offline Last Active Yesterday, 07:47 PM

Posts I've Made

In Topic: Can a catmull rom take the place of a dubins curve?

21 August 2016 - 09:48 AM

no then
consider a lsl turn
i shall need 6 control points for the third one i need to know the turning radius which is impossible to find with catmull rom

In Topic: How To Perform Matrix Dot Product On D3Dx9?

04 August 2016 - 02:15 AM

Guess what. I just discovered there is a C++ version of NumPy out there.

It is in here

https://github.com/ndarray/Boost.NumPy


In Topic: How To Perform Matrix Dot Product On D3Dx9?

01 August 2016 - 12:29 AM

Just to make sure.

Because my game needs my vehicles to pathfind on ramps,

I am not sure if 3D dubins is needed when calculating subpaths

on ramps....

Because in flat ground case, 2D dubins is needed,

Is 3D case similiar to this?

Thanks

Jack


In Topic: Basic Game Object Communication

26 July 2016 - 08:22 PM

Sorry, a couple of typos....

 

D3DXVECTOR3 FindParkingSpot(const std::shared_ptr<GameObject>& pParkingPlace)
{
    D3DMATRIX matPark = pParkingPlace->FindFrame("ParkingPlace")->matCombined;
    return D3DXVECTOR3(matPark._41, matPark._42, matPark._43);
}
 
void Parking(const std::shared_ptr<GameObject>& pParkingPlace, const std::shared_ptr<GameObject>& pParkingVehicle) const
{
     D3DXVECTOR3 vParkSpot = FindParkingSpot(pParkingPlace);
     pParkingVehcle->setPosition(vParkSpot);
}

In Topic: Basic Game Object Communication

26 July 2016 - 08:20 PM

If like phil_t said, completely decoupled?

 

Maybe just like phil_t said,
 
[code]
D3DXVECTOR3 FindParkingSpot(const std::shared_ptr<GameObject>& pParkingPlace)
{
    D3DMATRIX matPark = pParkPlace->FindFrame("ParkingPlace")->matCombined;
    return D3DXVECTOR3(matPark._41, matPark._42, matPark._43);
}
 
void Parking(const std::shared_ptr<GameObject>& pParkingPlace, const std::shared_ptr<GameObject>& pParkingVehicle)
{
     D3DXVECTOR3 vParkSpot = FindParkingSpot(pParkingPlace);
     pParkingVehcle->setPosition(vParkSpot);
}

PARTNERS