23 May '13 - 13:04
 Welcome, Guest. Please login or register.Did you miss your activation email? 1 Hour 1 Day 1 Week 1 Month Forever Login with username, password and session length
 Home Help Search Login Register
Pages: [1]
 Author Topic: BASS_Set3DPosition  (Read 1437 times)
Newborn
Posts: 2

 « on: 17 Jul '02 - 01:30 » Quote

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

 Logged
Ian @ un4seen
Posts: 15269

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

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 » Quote

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

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