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
mNo edit summary
m (Fix whatever broken formatting was being caused by the image being placed first)
 
(30 intermediate revisions by 16 users not shown)
Line 1: Line 1:
[http://orel-na-vole.freehostia.com/blog/comune-di198/ comune di napoli sezione anagrafica] [http://naughtygirl92.ifrance.com/data/temi-sui2.html temi sui promessi sposi manzoni] [http://rasa18.ifrance.com/manila-cose/ manila cose fare] [http://rasa18.ifrance.com/facce-da/ facce da culo] [http://rasa18.ifrance.com/toner-w/ toner 1300w] [http://orel-na-vole.freehostia.com/blog/reggaeton-gratis/ reggaeton gratis] [http://nnnslogan.freehostia.com/v-rossi.htm v rossi] [http://rasa18.ifrance.com/www-fano/ www fano pe it] [http://orel-na-vole.freehostia.com/blog/danza-in/ danza in inghilterra] [http://naughtygirl92.ifrance.com/data/la-canzone58.html la canzone popolare] [http://rasa18.ifrance.com/tv-monitor7/ tv monitor 1280] [http://orel-na-vole.freehostia.com/blog/riforma-pac/ riforma pac] [http://orel-na-vole.freehostia.com/blog/albergo-economici22/ albergo economici firenze] [http://naughtygirl92.ifrance.com/data/sigla-di13.html sigla di ciao darwin] [http://orel-na-vole.freehostia.com/blog/toyota-yaris22/ toyota yaris verso km o] [http://nnnslogan.freehostia.com/mafia-domenico.htm mafia domenico modugno] [http://orel-na-vole.freehostia.com/blog/rappresentanti-lavoro/ rappresentanti lavoro] [http://nnnslogan.freehostia.com/mauro-grifoni.htm mauro grifoni] [http://rasa18.ifrance.com/macchine-stampa/ macchine stampa] [http://naughtygirl92.ifrance.com/data/singole-donne1.html singole donne] [http://nnnslogan.freehostia.com/parodie-delle.htm parodie delle poesie famose] [http://nnnslogan.freehostia.com/canon-laser11.htm canon laser a3] [http://rasa18.ifrance.com/bullet-time4/ bullet time fight game] [http://naughtygirl92.ifrance.com/data/nomi-di13.html nomi di maschi] [http://orel-na-vole.freehostia.com/blog/roberto-cavalli48/ roberto cavalli donna perizoma] [http://naughtygirl92.ifrance.com/data/gioco-di50.html gioco di mucca] [http://nnnslogan.freehostia.com/audio-aux.htm audio aux] [http://rasa18.ifrance.com/dvd-video14/ dvd video plug in mpeg 2 encoder] [http://rasa18.ifrance.com/cantate-domino1/ cantate domino] [http://orel-na-vole.freehostia.com/blog/fiat-punto180/ fiat punto benzina km 0] [http://naughtygirl92.ifrance.com/data/torce-surefire.html torce surefire] [http://rasa18.ifrance.com/oudaden/ oudaden] [http://orel-na-vole.freehostia.com/blog/bechet-diseas/ bechet diseas] [http://rasa18.ifrance.com/televisori-thomson4/ televisori thomson 42 plasma] [http://rasa18.ifrance.com/impresa-todini/ impresa todini] [http://naughtygirl92.ifrance.com/data/volo-paderno.html volo paderno dugnano] [http://nnnslogan.freehostia.com/swarovski.htm swarovski] [http://rasa18.ifrance.com/fotografia-ca/ fotografia ca arta] [http://nnnslogan.freehostia.com/tv-sul1.htm tv sul pc] [http://rasa18.ifrance.com/scatsex/ scatsex] [http://rasa18.ifrance.com/besame-mucho3/ besame mucho] [http://rasa18.ifrance.com/hgh/ hgh] [http://naughtygirl92.ifrance.com/data/word-search.html word search] [http://rasa18.ifrance.com/lettera-di5/ lettera di recesso] [http://rasa18.ifrance.com/tracy-chapman2/ tracy chapman think bout revolution] [http://nnnslogan.freehostia.com/sex-partouze.htm sex partouze] [http://orel-na-vole.freehostia.com/blog/tende-tendaggi/ tende tendaggi] [http://orel-na-vole.freehostia.com/blog/tormento-de/ tormento de amor] [http://naughtygirl92.ifrance.com/data/venezia-mauritius.html venezia mauritius biglietti aerei] [http://rasa18.ifrance.com/villaggio-la/ villaggio la pace] [http://nnnslogan.freehostia.com/lisbona-alberghi.htm lisbona alberghi e hotel] [http://orel-na-vole.freehostia.com/blog/toshiba-mt4/ toshiba mt700] [http://rasa18.ifrance.com/casse-infinity2/ casse infinity beta 10] [http://naughtygirl92.ifrance.com/data/dvd-toshiba.html dvd toshiba] [http://orel-na-vole.freehostia.com/blog/pascoli-x/ pascoli x agosto parafrasi] [http://rasa18.ifrance.com/arua/ arua] [http://orel-na-vole.freehostia.com/blog/buonassisi/ buonassisi] [http://nnnslogan.freehostia.com/muller.htm muller] [http://rasa18.ifrance.com/heart-of3/ heart of ocean] [http://rasa18.ifrance.com/nome-per/ nome per gatti] [http://naughtygirl92.ifrance.com/data/raffaello-telecom.html raffaello telecom] [http://rasa18.ifrance.com/uniform/ uniform] [http://orel-na-vole.freehostia.com/blog/u8/ u3] [http://rasa18.ifrance.com/copribottoni/ copribottoni] [http://orel-na-vole.freehostia.com/blog/shamanic-princess/ shamanic princess oav complete collection] [http://naughtygirl92.ifrance.com/data/quiz-da.html quiz da scaricare gratis per patente b] [http://rasa18.ifrance.com/durex-jeans/ durex jeans] [http://naughtygirl92.ifrance.com/data/bat-men1.html bat men 9] [http://naughtygirl92.ifrance.com/data/fare-sesso5.html fare sesso] [http://nnnslogan.freehostia.com/prenotazione-hotel35.htm prenotazione hotel budapest] [http://naughtygirl92.ifrance.com/data/lettori-mp198.html lettori mp3 20gb] [http://rasa18.ifrance.com/non-potto/ non potto reposare] [http://rasa18.ifrance.com/come-divenni/ come divenni padre] [http://naughtygirl92.ifrance.com/data/ospedale-cto.html ospedale cto firenze] [http://rasa18.ifrance.com/frasi-erotiche/ frasi erotiche] [http://nnnslogan.freehostia.com/nokia-452.htm nokia 2650 cavo] [http://nnnslogan.freehostia.com/i-m77.htm i m a different person] [http://rasa18.ifrance.com/nessun-dorma5/ nessun dorma giacoma puccini] [http://nnnslogan.freehostia.com/peter-com.htm peter com] [http://naughtygirl92.ifrance.com/data/passeggino-peg.html passeggino peg] [http://orel-na-vole.freehostia.com/blog/visualizza/ visualizza] [http://orel-na-vole.freehostia.com/blog/virgin-pussy/ virgin pussy] [http://rasa18.ifrance.com/allure-sport/ allure sport] [http://rasa18.ifrance.com/calciatori-sotto/ calciatori sotto la doccia] [http://orel-na-vole.freehostia.com/blog/portege-m/ portege m200] [http://rasa18.ifrance.com/prestito-jesolo/ prestito jesolo] [http://nnnslogan.freehostia.com/legame-mortale.htm legame mortale] [http://rasa18.ifrance.com/download-mario1/ download mario winas i don t wanna know] [http://nnnslogan.freehostia.com/sex-images.htm sex images] [http://rasa18.ifrance.com/magic-cards/ magic cards] [http://rasa18.ifrance.com/le-passager/ le passager] [http://nnnslogan.freehostia.com/tappeti-in1.htm tappeti in gomma] [http://nnnslogan.freehostia.com/fiat-punto186.htm fiat punto 1200 benzina] [http://naughtygirl92.ifrance.com/data/acer-videoproiettore.html acer videoproiettore pd 525d] [http://nnnslogan.freehostia.com/www-ayhoo.htm www ayhoo com] [http://rasa18.ifrance.com/hyundai-tucson4/ hyundai tucson 2 0 crd] [http://rasa18.ifrance.com/key-sat5/ key sat sct] [http://nnnslogan.freehostia.com/Donne-ciccione1.htm donne ciccione] [http://naughtygirl92.ifrance.com/data/olympus-digitale1.html olympus digitale zoom 10x] [http://naughtygirl92.ifrance.com/data/sound-track.html sound track 60 segundos]  
{{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.