splash on the water

Blitz3D Forums/Blitz3D Beginners Area/splash on the water

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

excelent!... thanks!!...


i use that, post the example..

old_y#= entityy#(ode\mesh,1)
RotateEntity ode\mesh,dGeomGetPitch#(ode\geom),dGeomGetYaw#(ode\geom),dGeomGetRoll#(ode\geom)
PositionEntity ode\mesh,dGeomGetPositionX#(ode\geom),dGeomGetPositionY#(ode\geom),dGeomGetPositionZ#(ode\geom)
new_y# = entityy#(ode\mesh,1)

;CREAR SPRITE DE OLA CUANDO LA CAJA TOCA EL AGUA

if ode\id = 1 and sgn(new_y#) = - sgn(old_y#) then

sprite.sprite = new sprite
sprite\entidad = loadmesh("..\b3d\sprite.b3d",ode\mesh)
scaleentity sprite\entidad,.1,1,1,1
positionentity sprite\entidad,0,0,0
entityparent sprite\entidad,0
rotateentity sprite\entidad,0,0,0,1
entitytexture sprite\entidad,st_splash
entitycolor sprite\entidad,100,200,260
entityalpha sprite\entidad,.5
;entityorder sprite\entidad,1
sprite\vida# = 200
gene = 1
sprites= sprites + 1

end if