23 May '13 - 13:04 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: BASS_Set3DPosition  (Read 1437 times)
Newborn
Posts: 2


« on: 17 Jul '02 - 01:30 »
Reply with quoteQuote

Hello!

Am I missing something here?
At each game loop, I try to update the BASS system angle and it wont work (ie: the front seems to stay at 0 degrees), which means: I always hear the sound in front of me

Is the Front parameter in BASS_Set3DPosition nees to be a radian? an angle? a D3DVector of a direction?

Note: I'm using VB

Thanks in advance
Logged
Ian @ un4seen
Administrator
Posts: 15269


« Reply #1 on: 17 Jul '02 - 12:17 »
Reply with quoteQuote

The front parameter is a vector. Also make sure you call BASS_Apply3D when you've finished making 3D changes.

Although the code examples are in C, you should still see the BASS documentation (bass.chm) for information on the functions.
Logged
Newborn
Posts: 2


« Reply #2 on: 21 Jul '02 - 09:00 »
Reply with quoteQuote

Sorry to bother you again, but I cant seem to find a way to make it work properly... Lets hope you know a bit of VB and about vectors Cheesy

vPos is the Vector of the position of the player, sAngle is the angle of the player (360 degrees, looking from north to west, south...). I'm trying to set the vFront:

       vFront.X = vPos.X + (Sin(sAngle * PI / 180) * 10)
       vFront.Z = vPos.Z + (Cos(sAngle * PI / 180) * 10)
       vFront.Y = vPos.Y
       BASS_Set3DPosition vPos, Null, vFront, Null
       BASS_Update
       BASS_Apply3D

So, what am I doing wrong here? The vFront is a vector placed 10 units in front of the player. Aint that what I'm supposed to do?

Thanks alot for your precious help, it's really appreciated!
Logged
Ian @ un4seen
Administrator
Posts: 15269


« Reply #3 on: 21 Jul '02 - 12:15 »
Reply with quoteQuote

The front and top parameters can not be set individually, they must be set together. See the BASS_Set3DPosition docs Smiley
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines