This article's documentation is for anything that uses the Source engine. Click here for more information.

Phys ballsocket: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (Fix whatever broken formatting was being caused by the image being placed first)
 
(24 intermediate revisions by 14 users not shown)
Line 1: Line 1:
[http://www.bidondates.com/pics/albums/102806/CIMG1414/rjuwku.html lamictal] [http://reportchildporn.com/rcp/themes/phpkaox/cache/itchng.html cnc laser cutting] [http://meretusa.com/links/cache/sopced.html suzuki jimny] [http://interserverhost.com/gallery/albums/userpics/avatars/asmpdu.html homedepot] [http://shopwhat.com/photo/image/ivsdws.html leland chapman] [http://c21redwood.com/images/properties/thumbs/njeebw.html cote de pablo] [http://c21redwood.com/images/properties/thumbs/rshbkv.html pet suppliers] [http://www.bassboatmagazine.com/linkmachine/templates/lm_images/thumb/rxxrfm.html penis pump] [http://shopwhat.com/photo/image/rumvws.html make phone call internet] [http://www.swiic.com/swi/images/banners/128x250/xfaaix.html chubby] [http://deadmansjacket.co.uk/gallery_images/thumbs/uiwmrn.html free ringtones for nokia] [http://meretusa.com/links/cache/clmuxi.html cover girls] [http://bostoncentury.com/old/coppermine/albums/userpics/10001/thumb/ejswus.html porno sex] [http://adrianwindridge.co.uk/propertyimages/thumbs/gif/cfidxr.html suzuki motorcycle part online] [http://bostoncentury.com/old/coppermine/albums/userpics/10001/thumb/sedecr.html swivel sweeper] [http://woodcrafts-online.com/shop/components/com_virtuemart/shop_image/product/thmbs/rpqfij.html asthma symptoms] [http://www.jericogt.com/design/schema/images/news/thumb/1/rxfsah.html cheap hotels las vegas] [http://www.partnerwithsap.com/de/images/banners/dlfdvh.html japanese translator] [http://www.swiic.com/swi/images/banners/128x250/qnbrdx.html littlest pet shop] [http://reverejournal.com/wp-content/uploads/2007/05/images/bpajts.html picture personal] [http://reportchildporn.com/rcp/themes/phpkaox/cache/qkxbmk.html patek philippe watch] [http://staticchain.com/banner/123x110/lbvpkm.html wwe raw download] [http://npgsupport.com/chat/chat/localization/icelandic/cache/eivwma.html bible stories] [http://maslov.com/new_releases/cache/ohhklf.html free crochet paterns] [http://www.partnerwithsap.com/de/images/banners/rknnif.html jurys hotel dublin] [http://meretusa.com/links/cache/xxqpdr.html dirtbikes] [http://marylandcomputerguy.net/nails/image/mbqkcp.html el chat] [http://adrianwindridge.co.uk/propertyimages/thumbs/gif/uqwxak.html cheap used car] [http://staticchain.com/banner/123x110/telnjn.html bbw porno] [http://npgsupport.com/chat/chat/localization/icelandic/cache/gfpxau.html goji juice] [http://www.partnerwithsap.com/de/images/banners/srrduu.html student insurance] [http://reverejournal.com/wp-content/uploads/2007/05/images/dghtqn.html naked women] [http://www.athomewithmark.com/images/properties/thumb/almiwe.html vuarnet] [http://borrington.org/videos/move/coblee.html freexxx] [http://npgsupport.com/chat/chat/localization/icelandic/cache/kufpeb.html hvac equipment] [http://www.bassboatmagazine.com/linkmachine/templates/lm_images/thumb/wqrbiu.html dansko discount shoes] [http://npgsupport.com/chat/chat/localization/icelandic/cache/hqifbs.html terri hatcher] [http://www.hardenassociates.com/shands-santa/albums/image/loiovi.html victorian bridal bouquets] [http://woodcrafts-online.com/shop/components/com_virtuemart/shop_image/product/thmbs/dejncc.html ps2 game cheat codes] [http://adrianwindridge.co.uk/propertyimages/thumbs/gif/xjbuqw.html milf sex] [http://c21redwood.com/images/properties/thumbs/pksxje.html desmopressin] [http://woodcrafts-online.com/shop/components/com_virtuemart/shop_image/product/thmbs/bugdwn.html daewoo] [http://aoreport.com/mag/images/stories/News05-06/5-22-06/image/uxwewp.html freightliner trucks] [http://interserverhost.com/gallery/albums/userpics/avatars/qlvnwu.html height and weight chart] [http://deadmansjacket.co.uk/gallery_images/thumbs/ckexfi.html paris hilton xxx] [http://wirelessilliana.com/sullivanpack341/gallery341/g2data/image/nhddkr.html adult home made videos] [http://maslov.com/new_releases/cache/mvbnum.html bathroom shower curtain] [http://staticchain.com/banner/123x110/ommbxo.html golf apparel] [http://npgsupport.com/chat/chat/localization/icelandic/cache/cqiirf.html bank of america] [http://c21redwood.com/images/properties/thumbs/pghiam.html methadone] [http://michaelboyle.biz/joomla/templates/limbocms/limbocms/images/pics/gvrcfi.html reverse telephone number lookup] [http://reverejournal.com/wp-content/uploads/2007/05/images/qqnqpn.html game download] [http://shopwhat.com/photo/image/mrgivi.html arabic hot girls] [http://reportchildporn.com/rcp/themes/phpkaox/cache/shwveo.html jap girls] [http://www.boatnbabes.com/babes/modules/xcgal/albums/userpics/10001/thumbs/vkcarg.html spybot] [http://maslov.com/new_releases/cache/koavoa.html cell phone prepaid service] [http://sbcoachescollege.com/bulletin/images/avatars/new/phfqjs.html blow up dolls] [http://npgsupport.com/chat/chat/localization/icelandic/cache/pscsxl.html home equity loans] [http://michaelboyle.biz/joomla/templates/limbocms/limbocms/images/pics/addkfw.html perfumes] [http://sbcoachescollege.com/bulletin/images/avatars/new/nqhfwn.html moving companies] [http://c21redwood.com/images/properties/thumbs/ibcrom.html realplayer] [http://interserverhost.com/gallery/albums/userpics/avatars/ffolxm.html gift baskets bath products] [http://michaelboyle.biz/joomla/templates/limbocms/limbocms/images/pics/fgdbwa.html sony digital camcorders] [http://deadmansjacket.co.uk/gallery_images/thumbs/ieenpe.html cartoon network] [http://marylandcomputerguy.net/nails/image/tlousw.html free webspace] [http://npgsupport.com/chat/chat/localization/icelandic/cache/flvclr.html american furniture] [http://shopwhat.com/photo/image/hsbgmn.html christian louboutin] [http://shopwhat.com/photo/image/kabrqg.html rolex gmt master] [http://sbcoachescollege.com/bulletin/images/avatars/new/oohwth.html littlest pet shop] [http://c21redwood.com/images/properties/thumbs/hiecnh.html making money] [http://c21redwood.com/images/properties/thumbs/xcbwdh.html types of herpes] [http://meretusa.com/links/cache/eusjde.html cha cha slide] [http://interserverhost.com/gallery/albums/userpics/avatars/wjgrdh.html haberler] [http://aoreport.com/mag/images/stories/News05-06/5-22-06/image/oqivpo.html chloe replica] [http://www.christianspeaker.net/catalog/images/icon/vmxlhs.html sportsman guide] [http://adrianwindridge.co.uk/propertyimages/thumbs/gif/xworai.html naked sex] [http://interserverhost.com/gallery/albums/userpics/avatars/rxfdrt.html adult dating services] [http://borrington.org/videos/move/vcltfa.html music download] [http://wirelessilliana.com/sullivanpack341/gallery341/g2data/image/qtfeka.html czech glass pearls] [http://woodcrafts-online.com/shop/components/com_virtuemart/shop_image/product/thmbs/begpgm.html noni juice] [http://woodcrafts-online.com/shop/components/com_virtuemart/shop_image/product/thmbs/napkrq.html steriods] [http://shopwhat.com/photo/image/etabda.html environmental policy] [http://www.partnerwithsap.com/de/images/banners/ovfakj.html latina fuck] [http://www.swiic.com/swi/images/banners/128x250/vckmfr.html viaccess] [http://www.bassboatmagazine.com/linkmachine/templates/lm_images/thumb/idbvif.html free music video download] [http://michaelboyle.biz/joomla/templates/limbocms/limbocms/images/pics/pdbdtc.html emule server list] [http://bostoncentury.com/old/coppermine/albums/userpics/10001/thumb/mmesaa.html picture] [http://www.partnerwithsap.com/de/images/banners/wvcebn.html free casino game for fun] [http://wirelessilliana.com/sullivanpack341/gallery341/g2data/image/bbnber.html twinks free pics] [http://www.usedboatdealer.com/boats/images/banners/gif/mefdut.html adult halloween party invitation] [http://borrington.org/videos/move/nqwcop.html cheerleading dresses] [http://shopwhat.com/photo/image/artvis.html john deere myspace layouts] [http://michaelboyle.biz/joomla/templates/limbocms/limbocms/images/pics/curjiw.html meridia generic] [http://michaelboyle.biz/joomla/templates/limbocms/limbocms/images/pics/fsotud.html metoclopramide] [http://aoreport.com/mag/images/stories/News05-06/5-22-06/image/hbwwdb.html flight school] [http://maslov.com/new_releases/cache/pvlhmq.html adult halloween costumes] [http://www.hardenassociates.com/shands-santa/albums/image/uxjrpv.html home equity mortgages in canada] [http://c21redwood.com/images/properties/thumbs/uocsgs.html fungus toe] [http://sbcoachescollege.com/bulletin/images/avatars/new/qonede.html time life music] [http://www.partnerwithsap.com/de/images/banners/bktrbi.html down pants]
{{tabs|main=source|source=1|source2=1|phys_ballsocket}}
{{wrongtitle|title=phys_ballsocket}}
__NOTOC__
{{CD|CPhysBallSocket|file1=physconstraint.cpp}}
{{this is a|point entity|name=phys_ballsocket|sprite=1}} It simulates a rigid connection between the centre of its constrained entities and its own location that prevents them from changing relative distance and makes their rotation point its own location.
 
Most constraints, if given two entities, will constrain them directly to each other; phys_ballsocket will constrain them to itself. Despite this slightly different behaviour however, the entity still won't remain at a fixed location when two entities are attached. {{todo|Can you [[phys_constraint|constrain]] the constraint?}}
 
{{note|Torque limit is always 0 (infinite) for this entity.}}
 
Example map: ''sourcesdk_content\hl2\mapsrc\sdk_phys_ballsocket.vmf''
[[File:Phys ballsocket vis.png|right|frame|The joint simulated by phys_ballsocket. Note that Source permits a full 360° of movement since the constraint itself has no physical presence. ]]


== Entity description ==
[[Image:{{PAGENAME}}.png|left]]A constraint that keeps the position of two objects fixed, relative to the constraint's origin. It does not affect rotation.{{clr}}


== Keyvalues ==
== Keyvalues ==
* {{kv twoobjectphysics}}
{{KV TwoObjectPhysics}}


== Flags ==
== Flags ==
* {{fl twoobjectphysics1}}
{{Fl TwoObjectPhysics}}
* {{fl twoobjectphysics2}}


== Inputs ==
== Inputs ==
* {{i twoobjectphysics}}
{{I TwoObjectPhysics}}


== Outputs ==
== Outputs ==
* {{o twoobjectphysics}}
{{O TwoObjectPhysics}}


[[Category:Entities]]
[[Category:Constraints|B]]

Latest revision as of 22:20, 19 June 2024

C++ Class hierarchy
CPhysBallSocket
CPhysConstraint
CLogicalEntity
CServerOnlyEntity
CBaseEntity
C++ physconstraint.cpp
Phys ballsocket.png

phys_ballsocket is a point entity available in all Source Source games. It simulates a rigid connection between the centre of its constrained entities and its own location that prevents them from changing relative distance and makes their rotation point its own location. Most constraints, if given two entities, will constrain them directly to each other; phys_ballsocket will constrain them to itself. Despite this slightly different behaviour however, the entity still won't remain at a fixed location when two entities are attached.

Todo: Can you constrain the constraint?
Note.pngNote:Torque limit is always 0 (infinite) for this entity.

Example map: sourcesdk_content\hl2\mapsrc\sdk_phys_ballsocket.vmf

The joint simulated by phys_ballsocket. Note that Source permits a full 360° of movement since the constraint itself has no physical presence.


Keyvalues

TwoObjectPhysics:

Entity 1 (attach1) <targetname>
Entity 2 (attach2) <targetname>
The entities to constrain. Leave one or the other field blank to constrain to the world.
Note.pngNote:Only one entity will be constrained, even if several share the given targetname.
Constraint System Manager (constraintsystem) <targetname>
A phys_constraintsystem that this constraint should be a part of. This avoids the "jiggling" caused by constraints applied to the same set of entities fighting with each other.
Force Limit to Break (forcelimit) <float>
Impact force required to break the constraint, in pounds. 0 means infinite. A way of calculating this is to set it to the weight of an object that would break the constraint if it were resting on its objects.
Torque Limit to Break (torquelimit) <float>
Torque required to break the constraint, in pounds*inches. 0 means infinite. A way of calculating this is to multiply any reference mass by the resting distance (from the center of mass of the object) needed to break the constraint.
Play Sound on Break (breaksound) <string>
A sound played when the constraint is broken.
Follow teleport distance (teleportfollowdistance) <float>
If one constrained object teleports more than this many units away, the other will teleport with it.


Flags

No Collision until break : [1]
Start inactive : [4]
Change mass to keep stable attachment to world : [8]
Do not connect entities until turned on : [16]

Inputs

TwoObjectPhysics:
Break
Force the constraint to break.
TurnOn
Enable the constraint; do this if the constrained objects don't exist when it spawns. Note that broken constraints cannot be turned back on as they have been deleted.
TurnOff
Disable the constraint.

Outputs

TwoObjectPhysics:
OnBreak
Fired when the constraint breaks.