Prop_Physics balloon-like movement

Got problems with your models? Struggling with textures? Get help with your custom assets.

Prop_Physics balloon-like movement

Postby Black Sheep on Thu Jun 02, 2011 5:20 am

Alright, So I am a modeller for a guy's surf map project and I made this abstract ball of light for it. The problem is he wants the ball to be hit around the room like a balloon. I have tried a lot of mass scale changes from .0001 to 100000 and a lot of qc file changes. The balls size has a radius of 105 units and is pictured below. So my question is can anyone give me the proper properties and qc file to make a prop_physics act like a balloon?

Here is my qc file
Code: Select all
$modelname "BSmodels\BS_Sphere"
$model "BS_Sphere" "..\BS_Sphere.smd"
$cdmaterials "models\BSmodels"
$hboxset "default"
$hbox 0 "null" -105.000  -105.000  -105.000  105.000  105.000  105.000
$surfaceprop "default"
$keyvalues  { prop_data { "base" "Plastic.Small" "health" "0" "physicsmode" "1"  } }
$sequence idle "..\BS_Sphere.smd" fps 30.00
$collisionmodel "..\BS_Sphere.smd" {

   $mass 55.0
   $inertia 1.00
   $damping 0.00
   $rotdamping 0.00
}


Image
[img width="400" height="100"]http://i299.photobucket.com/albums/mm300/blacksheep987/ice-sig.png[/img]
User avatar
Black Sheep
Regular
Regular
 
Joined: Sun Feb 01, 2009 2:27 am

Re: Prop_Physics balloon-like movement

Postby Gary on Thu Jun 02, 2011 10:06 am

Like, the ability to float into the air?

If so, I have an idea:
Fill the playable area with a trigger_vphysics_motion. Use a filter so it only affects your balloon(make sure to also set the proper flags in the trigger).

Set ""SetLinearForceAngles" pointing upwards and "SetLinearForce" to what ever amount is needed to push the balloons up.


If you mean something like, a "bouncing" property, then I have no idea.
Have a question related to modding or something I posted? Something that needs staff attention? I haven't been active lately, but feel free to PM me or message me on Steam(link below)

User avatar
Gary
Interlopers Staff
Interlopers Staff
 
Joined: Wed Dec 16, 2009 12:40 am
Location: USA, FL

Re: Prop_Physics balloon-like movement

Postby Black Sheep on Thu Jun 02, 2011 4:21 pm

Yea, That seams like it would work. However I cannot get to the trigger_vphysics_motion entity. I tried the default and a custom fdg, but no luck. I also tried manually typing it in and manually adding the keyvalues but that also did not work. Is this entity still available?
[img width="400" height="100"]http://i299.photobucket.com/albums/mm300/blacksheep987/ice-sig.png[/img]
User avatar
Black Sheep
Regular
Regular
 
Joined: Sun Feb 01, 2009 2:27 am

Re: Prop_Physics balloon-like movement

Postby CorporalAris on Thu Jun 02, 2011 4:25 pm

Black Sheep wrote:Yea, That seams like it would work. However I cannot get to the trigger_vphysics_motion entity. I tried the default and a custom fdg, but no luck. I also tried manually typing it in and manually adding the keyvalues but that also did not work. Is this entity still available?

This is what I found.

VDC: (trigger_vphysics_motion)
VDC wrote:Availability

This brush-based entity is available in: HL2. In code it is represented by class CTriggerVPhysicsMotion, defined in triggers.cpp.


Someone questions why it's only in the HL2 FGD in the discussion, but that's it.
Image
User avatar
CorporalAris
Been Here A While
Been Here A While
 
Joined: Tue Apr 22, 2008 10:10 pm

Return to Custom Asset Help

Who is online

Users browsing this forum: No registered users