PDA

View Full Version : Brush / Volume Collision component



Marcin
03-10-2011, 12:46 PM
Hi!

So I'm trying to base my pawn on dynamic volume but I'm having problems setting volume size.

I have found that Volume extends Brush, and collision component is set as follows:



Begin Object Class=BrushComponent Name=BrushComponent0
End Object
BrushComponent=BrushComponent0
CollisionComponent=BrushComponent0
Components.Add(BrushComponent0)


How can I set size of this brush component in unreal script?

kmadhukishore
01-18-2013, 07:12 AM
Hello Marcin,

I am trying to do the same thing. Spawn my custom "Post Processing Volume"(Which extends from Volume) through code. But I never figured out how to set volume size through unreal script.
Stuff that I tried and didn't work:
1) I Grabbed BrushComponent in defaults and tried to change the Bounds. As it is constant it didn't let me change.
2) I thought of doing Scale 3D on the Post Processing Volume. But as I am spawning my Post Processing volume through code. Its Bounds-Box Extent is set to (0,0,0). And Scale didn't Help.
3) I thought of setting Brush Component from ArcheType. Unfortunately I realized that we cant create a ArcheType fro Brush.

Can you please share your knowledge in case if you fixed this issue.

kmadhukishore
01-18-2013, 12:54 PM
Also I tried


Begin Object Name=BrushComponent0
Bounds = (Origin = (X = 0, Y = 0 , Z = 0), BoxExtent = ( X = 1, Y = 1, Z = 1), SphereRadius = 5)
Translation = ( X = 10, Y = 15, Z = 17 )
End Object


For some reason it updated "Translation", but not "Bounds".