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)
 
(20 intermediate revisions by 11 users not shown)
Line 1: Line 1:
[http://while.servemp3.com/resources/franck-muller.html franck muller watch] [http://while.servemp3.com/resources/tommylee.html tommylee] [http://bigger.servemp3.com/web/microsoft-photo.html microsoft photo editor] [http://shrewd.servemp3.com/web/group.htm group] [http://jeshu.servemp3.com/sex-web-cam.htm sex web cam] [http://jeshu.servemp3.com/used-mobile-home.htm used mobile home] [http://rumour.servemp3.com/blog/toyota-scion.html toyota scion] [http://bigger.servemp3.com/web/free-videos-porn.html free videos porn] [http://capdv.servemp3.com/non-destructive.html non destructive testing masters degree programs] [http://weigh.servemp3.com/library/woman-sex.html woman sex] [http://shrewd.servemp3.com/web/claude-monet.htm claude monet] [http://while.servemp3.com/resources/free-amateur-upskirt.html free amateur upskirt] [http://incite.servemp3.com/q/private-lender.html private lender personal loans] [http://capdv.servemp3.com/free-unlisted.html free unlisted phone number search] [http://incite.servemp3.com/q/porn-stars.html porn stars] [http://rumour.servemp3.com/blog/free-ringtone.html free ringtone for nokia 5165] [http://shrewd.servemp3.com/web/cool-ringtones.htm cool ringtones] [http://capdv.servemp3.com/amsouth-online.html amsouth online banking] [http://capdv.servemp3.com/phone-numbers.html phone numbers canada] [http://while.servemp3.com/resources/waterproof-laser.html waterproof laser labels] [http://weigh.servemp3.com/library/old-russian-women.html old russian women] [http://while.servemp3.com/resources/free-phone.html free phone] [http://shrewd.servemp3.com/web/generic-valium.htm generic valium] [http://capdv.servemp3.com/midgetsex.html midgetsex] [http://shrewd.servemp3.com/web/astelin.htm astelin] [http://incite.servemp3.com/q/halloween-props.html halloween props] [http://bigger.servemp3.com/web/geodon.html geodon] [http://bigger.servemp3.com/web/diesel-watch.html diesel watch] [http://jeshu.servemp3.com/free-sex-pictures.htm free sex pictures] [http://capdv.servemp3.com/los-tigres-del.html los tigres del norte] [http://rumour.servemp3.com/blog/tall-muscular.html tall muscular woman] [http://while.servemp3.com/resources/honda.html honda] [http://shrewd.servemp3.com/web/wholesale-apparel.htm wholesale apparel] [http://while.servemp3.com/resources/godzilla-monster.html godzilla monster] [http://capdv.servemp3.com/bingo-for-kids.html bingo for kids] [http://baffle.servemp3.com/blog/microsoft-internet.html microsoft internet explorer download] [http://weigh.servemp3.com/library/pic-pussy-squirting.html pic pussy squirting] [http://shrewd.servemp3.com/web/adult-search.htm adult search] [http://incite.servemp3.com/q/dinnerware-discount.html dinnerware discount] [http://weigh.servemp3.com/library/monthly-calendars.html monthly calendars] [http://shrewd.servemp3.com/web/kids.htm kids] [http://jeshu.servemp3.com/helena-my-chemical.htm helena my chemical romance] [http://baffle.servemp3.com/blog/free-mobile.html free mobile ringtone] [http://incite.servemp3.com/q/ipod.html ipod] [http://baffle.servemp3.com/blog/peace-sign.html peace sign] [http://bigger.servemp3.com/web/ceap-ticket.html ceap ticket] [http://shrewd.servemp3.com/web/purses-wholesale.htm purses wholesale] [http://rumour.servemp3.com/blog/evanscence.html evanscence] [http://bigger.servemp3.com/web/octagon-tables.html octagon tables] [http://bigger.servemp3.com/web/outdoor-fireplaces.html outdoor fireplaces] [http://baffle.servemp3.com/blog/rating-a-dirt-devil.html rating a dirt devil vacuum cleaner] [http://while.servemp3.com/resources/libido.html libido] [http://shrewd.servemp3.com/web/home-office-furniture.htm home office furniture] [http://capdv.servemp3.com/names-and-their.html names and their meanings] [http://while.servemp3.com/resources/linville-nc-realestate.html linville nc realestate] [http://rumour.servemp3.com/blog/weathershield.html weathershield windows] [http://shrewd.servemp3.com/web/auto-tune.htm auto tune] [http://baffle.servemp3.com/blog/fayetteville.html fayetteville newspaper] [http://incite.servemp3.com/q/sex-chats.html sex chats] [http://weigh.servemp3.com/library/s-corp.html s corp] [http://bigger.servemp3.com/web/auto-parts-store.html auto parts store] [http://rumour.servemp3.com/blog/toca-3.html toca 3] [http://baffle.servemp3.com/blog/mudd-shoes.html mudd shoes] [http://weigh.servemp3.com/library/bridal-dresses.html bridal dresses] [http://capdv.servemp3.com/black-fucking.html black fucking] [http://rumour.servemp3.com/blog/cell-phone-number.html cell phone number directory] [http://while.servemp3.com/resources/free-screensaver.html free screensaver download] [http://rumour.servemp3.com/blog/glyburide.html glyburide] [http://while.servemp3.com/resources/what-is-penicillin.html what is penicillin used for] [http://rumour.servemp3.com/blog/polaris-atv.html polaris atv parts] [http://bigger.servemp3.com/web/tin-coffee-signs.html tin coffee signs] [http://weigh.servemp3.com/library/strivectin-sd.html strivectin sd] [http://bigger.servemp3.com/web/real-estate.html real estate schools in orlando florida] [http://while.servemp3.com/resources/final-fantasy-7.html final fantasy 7 ringtones] [http://capdv.servemp3.com/sport-authority.html sport authority] [http://rumour.servemp3.com/blog/free-web-cam.html free web cam sex chat] [http://while.servemp3.com/resources/sex-chat.html sex chat] [http://weigh.servemp3.com/library/herramientas.html herramientas] [http://incite.servemp3.com/q/dell-laptop.html dell laptop] [http://while.servemp3.com/resources/free-nokia-ringtones.html free nokia ringtones and logo] [http://shrewd.servemp3.com/web/free-live-webcams.htm free live webcams] [http://rumour.servemp3.com/blog/vizio-hd-ready.html vizio hd ready lcd flat panel tv] [http://shrewd.servemp3.com/web/hcl-medication.htm hcl medication nortriptyline] [http://shrewd.servemp3.com/web/tiesto.htm tiesto] [http://while.servemp3.com/resources/silk-bridal-boquets.html silk bridal boquets] [http://weigh.servemp3.com/library/car-loan.html car loan] [http://while.servemp3.com/resources/slot-game.html slot game] [http://incite.servemp3.com/q/arkansas-adult-personals.html arkansas adult personals] [http://bigger.servemp3.com/web/used-motor-home.html used motor home] [http://incite.servemp3.com/q/vesti.html vesti] [http://capdv.servemp3.com/babelfish.html babelfish] [http://bigger.servemp3.com/web/long-hair-styles.html long hair styles] [http://bigger.servemp3.com/web/bank-one-united.html bank one united] [http://while.servemp3.com/resources/gas-fireplace.html gas fireplace log] [http://rumour.servemp3.com/blog/rental-furniture.html rental furniture] [http://incite.servemp3.com/q/stamina-pilates.html stamina pilates performer] [http://incite.servemp3.com/q/free-antispyware.html free antispyware] [http://weigh.servemp3.com/library/pc-cillin-freedownload.html pc cillin freedownload] [http://while.servemp3.com/resources/latin-pussy.html latin pussy] [http://weigh.servemp3.com/library/free-cellphone.html free cellphone wallpaper]
{{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.