Sorry I guess I didn't make myself clear enough
rem Ocean collision
if yc# < 45
xc# = oldxc#
zc# = oldzc#
yc# = oldyc#
endif
that code works in DBC. the same does not work in DBP, I get stuck at my position when i collide with ocean.
"Let's say sea level is always zero. Simply set yc# to 45."
then i would be able to walk on the water, right?
van B i dont set y to < 1, in the dbp program it's
[/code]
` OCEAN COLLISION
if cy# < 41
cx# = oldcx#
cz# = oldcz#
cy# = oldcy#
position camera cx#, cy#, cz#
endif
[code]
(EDIT:note the char height is 40#)
there is also the problem of jumping/skipping across the water
when i purchase DBP (im using trial version) ill look at their examples and stuff for the intersect object command, and try to do ocean collision with a get ground height thing for a .x obj
unless anyone wants to give me a function that gives me the y position of a face of .x object 1 at coordinates cx#, cz#.. that would be nice of u
this would help with ocean collision, as well as not being able to jump onto the ocean, as well as for you to not be able to control the character while in midair (if going in arc off a cliff or something; jumping is already taken care of), as well as positioning buildings added into the game onto the right ground height
chris