collisions and moving

Blitz3D Forums/Blitz3D Beginners Area/collisions and moving

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.

To elaborate on puki's suggestion, here is an example:
For s=0 To 5
ent = cone(s)

	dd# = EntityDistance(cube, ent)
	If dd <> 0 Then force# = 0.01 / dd Else force# = 0
	If force > 0.015 Then
		PointEntity ent, cube
		MoveEntity ent, 0, 0, -force
		RotateEntity ent, 0, 0, 0
	End If
		
Next

In the code archives, there is also an entry that is called 'push a row of cubes', that might be helpful.