@Latch:
I'm having difficulty implementing a shadow. It will draw the shadow, but instead of placing the plain under the player it places it about 3 units ABOVE the player.
There's an EXE attached to this post to show you what I mean. Here's the code I'm using too, it's coped from your technique in that thread from whenever ago:
`sliding collision
position object 1,posx#,posy#,posz#
for n=3 to 4
bang=object collision(1,n)
if bang!0 then exit
next n
if bang=1
dec posx#,get object collision x()
dec posy#,get object collision y()
dec posz#,get object collision z()
playergrav#=0.0
bang=0
endif
`set size for controlled object
s#=object size y(1)/2.0
`update with new object position
position object 1,posx#,posy#,posz#
`camera
angle#=object angle y(1)
camdist#=10.5 : camhigh#=posy#+2.5 : camfade#=12.5
set camera to follow posx#,posy#,posz#,angle#,camdist#,camhigh#,camfade#,1
xrotate camera 10
`Position the feeler below the sphere
position object 600,posx#,posy#-50,posz#
position object 2,posx#,posy#-100,posz#
bang5=object collision(600,0)
if bang5<>0 and bang5<>1 and bang5<>2
y#=object position y(bang5)+(object size y(bang5)/2.0)+.1
position object 2,posx#,get object collision y(),posz#
position object 2,posx#,y#,posz#
text 0,40,"Feeler Collision : "+str$(get object collision y())
endif
`end loop
sync
loop
Any ideas as to why this isn't positioning the shadow properly? I have tried everything I can think of.
[EDIT]
Yeah, that's basically what the side jumping was doing.
"If you want lots of people to play your game make it simple; lots of people are simple." -Obese87