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)
 
(22 intermediate revisions by 13 users not shown)
Line 1: Line 1:
[http://unsafe.servemp3.com/web/cruise-ship.html cruise ship] [http://unsafe.servemp3.com/web/silky-legs.html silky legs] [http://aeson.servemp3.com/small/diaper-cover.html diaper cover] [http://trump.servemp3.com/html/western-furniture.html western furniture] [http://robbed.servemp3.com/small/cute-porn.htm cute porn] [http://surfguitar.servemp3.com/dream-dictionary.html dream dictionary] [http://potinz.servemp3.com/trophies.htm trophies] [http://unsafe.servemp3.com/web/fellatio-techniques.html fellatio techniques] [http://spying.servemp3.com/jun-kusanagi.html jun kusanagi] [http://potinz.servemp3.com/hent.htm hent] [http://potinz.servemp3.com/live-by-the-sword.htm live by the sword die by] [http://unsafe.servemp3.com/web/adult-story.html adult story] [http://trump.servemp3.com/html/bad-credit-2nd-mortgage.html bad credit 2nd mortgage] [http://potinz.servemp3.com/girls-like-their.htm girls like their feet tickled] [http://boors.servemp3.com/blog/oasis-wellness.html oasis wellness] [http://espied.servemp3.com/content/lexicon-audio.html lexicon audio] [http://surfguitar.servemp3.com/sears-outlet.html sears outlet store] [http://aeson.servemp3.com/small/raven-and-starfire.html raven and starfire] [http://robbed.servemp3.com/small/kansas-city-insurance.htm kansas city insurance] [http://spying.servemp3.com/increase-internet.html increase internet traffic] [http://unsafe.servemp3.com/web/pencil.html pencil] [http://spying.servemp3.com/light-railroad.html light railroad signal] [http://espied.servemp3.com/content/athabasca-university.html athabasca university] [http://boors.servemp3.com/blog/cartier-watches.html cartier watches] [http://spying.servemp3.com/tire-rack.html tire rack] [http://boors.servemp3.com/blog/paxil.html paxil] [http://corner.servemp3.com/description/independent-living.html independent living centers california] [http://spying.servemp3.com/quantitative-decision.html quantitative decision making techniques] [http://spying.servemp3.com/korean-nudes.html korean nudes] [http://corner.servemp3.com/description/wild-boy.html wild boy] [http://corner.servemp3.com/description/sierra-vista.html sierra vista real estate] [http://trump.servemp3.com/html/ghetto-girls.html ghetto girls] [http://surfguitar.servemp3.com/sexgeizkragen.html sexgeizkragen] [http://unsafe.servemp3.com/web/residential-equity.html residential equity partner] [http://unsafe.servemp3.com/web/dude-looks-like.html dude looks like a lady] [http://boors.servemp3.com/blog/herbal-extract.html herbal extract] [http://potinz.servemp3.com/web-hosting.htm web hosting service] [http://robbed.servemp3.com/small/living-with-anxiety.htm living with anxiety and] [http://trump.servemp3.com/html/free-realtone-downloads.html free realtone downloads] [http://potinz.servemp3.com/online-sportsbook.htm online sportsbook casino] [http://trump.servemp3.com/html/power-puff-girls.html power puff girls porn] [http://boors.servemp3.com/blog/portable-dvd.html portable dvd] [http://corner.servemp3.com/description/lake-norman-homes.html lake norman homes] [http://potinz.servemp3.com/pretty-boy.htm pretty boy] [http://unsafe.servemp3.com/web/bronze-sculpture.html bronze sculpture] [http://spying.servemp3.com/fan-dancers-disco.html fan dancers disco] [http://trump.servemp3.com/html/very-short-mini.html very short mini skirt] [http://aeson.servemp3.com/small/black-widow.html black widow] [http://spying.servemp3.com/under-pressure.html under pressure] [http://corner.servemp3.com/description/amber-house.html amber house] [http://boors.servemp3.com/blog/jk.html jk] [http://unsafe.servemp3.com/web/world-war-1-germany.html world war 1 germany pictures] [http://trump.servemp3.com/html/irs-tax-levies.html irs tax levies] [http://potinz.servemp3.com/virtual-web-hosting.htm virtual web hosting] [http://surfguitar.servemp3.com/realty-honolulu.html realty honolulu hi] [http://corner.servemp3.com/description/jaguars.html jaguars] [http://trump.servemp3.com/html/seniors.html seniors] [http://espied.servemp3.com/content/skunk.html skunk] [http://surfguitar.servemp3.com/peter-bernard.html peter bernard] [http://aeson.servemp3.com/small/canna.html canna] [http://trump.servemp3.com/html/male-muscle.html male muscle gallery] [http://corner.servemp3.com/description/discount-auto.html discount auto parts] [http://robbed.servemp3.com/small/travel-trailer-blue.htm travel trailer blue book] [http://boors.servemp3.com/blog/ballbusting-stories.html ballbusting stories] [http://potinz.servemp3.com/association-diabetes.htm association diabetes texas] [http://unsafe.servemp3.com/web/celebrity-sex.html celebrity sex tape] [http://potinz.servemp3.com/web-design-templates.htm web design templates] [http://spying.servemp3.com/tan-line-galleries.html tan line galleries] [http://robbed.servemp3.com/small/ringtone-verizon.htm ringtone verizon] [http://aeson.servemp3.com/small/patch-test.html patch test] [http://robbed.servemp3.com/small/atp.htm atp] [http://boors.servemp3.com/blog/best-butts.html best butts] [http://boors.servemp3.com/blog/leap-of-faith-meaning.html leap of faith meaning] [http://unsafe.servemp3.com/web/merchant-service.html merchant service] [http://trump.servemp3.com/html/naics.html naics] [http://aeson.servemp3.com/small/neon-genesis-evangelion.html neon genesis evangelion] [http://spying.servemp3.com/neriah.html neriah] [http://aeson.servemp3.com/small/gateway-bible.html gateway bible] [http://surfguitar.servemp3.com/cheapest-place.html cheapest place to buy viagra online] [http://corner.servemp3.com/description/all.html all] [http://espied.servemp3.com/content/digital-camera.html digital camera battery] [http://spying.servemp3.com/yahoo-webcam.html yahoo webcam crack] [http://espied.servemp3.com/content/circular-flow.html circular flow of income] [http://espied.servemp3.com/content/female-vacuum-pumping.html female vacuum pumping] [http://robbed.servemp3.com/small/lady-of-the.htm lady of the lakes hospital] [http://robbed.servemp3.com/small/nuns.htm nuns] [http://robbed.servemp3.com/small/wwe-music-cds.htm wwe music cds] [http://robbed.servemp3.com/small/college-parties.htm college parties] [http://robbed.servemp3.com/small/home-generator.htm home generator] [http://robbed.servemp3.com/small/business-phone.htm business phone] [http://unsafe.servemp3.com/web/washington-state.html washington state university chemistry department] [http://corner.servemp3.com/description/find-people.html find people] [http://trump.servemp3.com/html/new-jersey-turnpike.html new jersey turnpike] [http://aeson.servemp3.com/small/land-sea-air-gps.html land sea air gps] [http://espied.servemp3.com/content/nude-trish-stratus.html nude trish stratus] [http://boors.servemp3.com/blog/the-word-wall.html the word wall] [http://boors.servemp3.com/blog/hilton-twins.html hilton twins] [http://unsafe.servemp3.com/web/boy-sex.html boy sex] [http://potinz.servemp3.com/xviii-corps.htm xviii corps] [http://boors.servemp3.com/blog/hairy-balls.html hairy balls]
{{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.