prisoner42
06-03-2011, 05:41 AM
Hi
I've got a problem making soft bodies move because of forces applied in unrealscript.
I can do it easily in rigid body static meshes but as soon as I try it with a softbody It doesn't move and the forces don't apply to the object.
Does anybody have an Idea of what Im doing wrong?
feels like soft bodies just ignore alot of things I've tried does anybody have a list of what they can and can't do? because attaching them to character meshes don't seem to work well either
DefaultProperties
{
Begin Object class=SkeletalMeshComponent Name=SkeletalMeshComponent0
SkeletalMesh=SkeletalMesh'test.test_SKM_Cube_soft'
PhysicsWeight=1.000000
bHasPhysicsAssetInstance=true
bEnableSoftBodySimulation=True
SoftBodyRBChannel=RBCC_SoftBody
SoftBodyRBCollideWithChannels=(Default=True,GamePl ayPhysics=true,EffectPhysics=True,SoftBody=True)
RBCollideWithChannels=(default=true,GameplayPhysic s=true,EffectPhysics=true)
bSoftBodyAwakeOnStartup=true;
End Object
Physics=PHYS_SoftBody
cube=SkeletalMeshComponent0
Components.Add(SkeletalMeshComponent0)
bMovable=true
bCollideWorld=true
bStatic=false
}
//tried different ways off applying forces nothing works or effects it
function Tick(float Delta)
{
super.Tick(Delta);
cube.AddImpulse(Vect(20,0,0),Vect(0,0,0));
cube.AddForce(Vect(20,0,0),Vect(0,0,0));
Velocity= MoveDirection*Speed;
}
I've got a problem making soft bodies move because of forces applied in unrealscript.
I can do it easily in rigid body static meshes but as soon as I try it with a softbody It doesn't move and the forces don't apply to the object.
Does anybody have an Idea of what Im doing wrong?
feels like soft bodies just ignore alot of things I've tried does anybody have a list of what they can and can't do? because attaching them to character meshes don't seem to work well either
DefaultProperties
{
Begin Object class=SkeletalMeshComponent Name=SkeletalMeshComponent0
SkeletalMesh=SkeletalMesh'test.test_SKM_Cube_soft'
PhysicsWeight=1.000000
bHasPhysicsAssetInstance=true
bEnableSoftBodySimulation=True
SoftBodyRBChannel=RBCC_SoftBody
SoftBodyRBCollideWithChannels=(Default=True,GamePl ayPhysics=true,EffectPhysics=True,SoftBody=True)
RBCollideWithChannels=(default=true,GameplayPhysic s=true,EffectPhysics=true)
bSoftBodyAwakeOnStartup=true;
End Object
Physics=PHYS_SoftBody
cube=SkeletalMeshComponent0
Components.Add(SkeletalMeshComponent0)
bMovable=true
bCollideWorld=true
bStatic=false
}
//tried different ways off applying forces nothing works or effects it
function Tick(float Delta)
{
super.Tick(Delta);
cube.AddImpulse(Vect(20,0,0),Vect(0,0,0));
cube.AddForce(Vect(20,0,0),Vect(0,0,0));
Velocity= MoveDirection*Speed;
}