Here is an example code so you can see what the issue is
Init:
testOBJ=1
clothOBJ=2
autocam off
position camera 0, 0, 0, -25
phy start
`create rigid body
make object sphere testOBJ, 4
scale object testOBJ, 50, 50, 50
position object testOBJ, 0, 2.5, 0
hide object testOBJ
phy make rigid body dynamic capsule testOBJ
phy set rigid body group testOBJ, 1
phy set group collision 1, 1, 0
`create cloth object
phy make cloth clothOBJ
phy set cloth dimensions clothOBJ, 10, 10, 0.25
phy set cloth position clothOBJ, -5, 2.5, -5
phy build cloth clothOBJ
phy attach cloth to shape clothOBJ, testOBJ, 0
phy set cloth collision clothOBJ, 0
`main loop
do
phy set rigid body rotation testOBJ, 0, -90, 0
phy set rigid body position testOBJ, x#, 0, 0
if x#<-13 or x#>12 then wait 50
if x#<-15 then x#=15
dec x#, 0.05
phy update
sync
loop
I have inserted an wait command to slow down the screen wrap around so we can clearly see whats going on
my queston is if there is any way to avoid the spike movement off the cloth when reposition it.
Help would bee appreciate