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)
 
(28 intermediate revisions by 15 users not shown)
Line 1: Line 1:
[http://howtoinstallshingles.vulkanik.cn/ how to install shingles] [http://peyote.cn/index7_250.html map] [http://freereversecell.orbitar.cn/ free reverse cell phone directory] [http://ordervalium.peyote.cn/ order valium] [http://simpsons.catchers.cn/ simpsons] [http://adipexp.evoker.cn/ adipex p] [http://celebrityupskirt.clootie.cn/ celebrity upskirt] [http://viking.evoker.cn/ viking] [http://cyberrentals.orbitar.cn/ cyber rentals] [http://autoleases.clootie.cn/ auto leases] [http://freeonlinepoker.emptio.cn/ free online poker game] [http://landscapingideas.clootie.cn/ landscaping ideas] [http://smock.mary-jane.cn/ smock] [http://newcentury.evoker.cn/ new century] [http://savingaccounts.drover.cn/ saving accounts uk] [http://dslproviders.vulkanik.cn/ dsl providers] [http://concertticket.outstay.cn/ concert ticket] [http://atkinsdiet.mary-jane.cn/ atkins diet] [http://fordcar.peyote.cn/ ford car] [http://orbitar.cn/index8_1000.html link] [http://autozoneautopart.outstay.cn/ auto zone auto part] [http://worldsbiggestpenis.clootie.cn/ worlds biggest penis] [http://jessicaalba.evoker.cn/ jessica alba] [http://iranphotosex.drover.cn/ iran photo sex] [http://sideviewmirror.mary-jane.cn/ side view mirror] [http://freeonlineslot.evoker.cn/ free online slot] [http://peoplesearch.mary-jane.cn/ people search] [http://copaairlines.orbitar.cn/ copa airlines] [http://downloadchess.mary-jane.cn/ download chess games] [http://seikowatchrepair.peyote.cn/ seiko watch repair] [http://penthouse.mary-jane.cn/ penthouse] [http://teenanal.drover.cn/ teen anal] [http://peugeot207.peyote.cn/ peugeot 207] [http://airlinefare.mary-jane.cn/ airline fare schedule southwest] [http://mp3downloadprogram.orbitar.cn/ mp3 download program] [http://signsofanaffair.clootie.cn/ signs of an affair] [http://nombres.outstay.cn/ nombres] [http://downloadfreesex.emptio.cn/ download free sex video] [http://filingbankrupcy.drover.cn/ filing bankrupcy] [http://phonedirectory.peyote.cn/ phone directory] [http://verisonwireless.peyote.cn/ verison wireless theater] [http://microsoftwindows.mary-jane.cn/ microsoft windows xp professional sp1a] [http://outdoor.peyote.cn/ outdoor] [http://chasevisa.peyote.cn/ chase visa] [http://safetyslogans.clootie.cn/ safety slogans] [http://casinoroyale.evoker.cn/ casino royale] [http://outstay.cn/ outstay.cn] [http://graphingcalculator.clootie.cn/ graphing calculator online] [http://quotes.peyote.cn/ quotes] [http://gallbladdersurgery.outstay.cn/ gallbladder surgery] [http://homeclipspasswords.emptio.cn/ homeclips passwords] [http://orbitar.cn/index9_250.html link] [http://clootie.cn/index4_250.html page] [http://vulkanik.cn/index5_1000.html home] [http://drover.cn/index0_250.html page] [http://toolboxes.emptio.cn/ tool boxes] [http://jennajamesonxxx.orbitar.cn/ jenna jameson xxx] [http://mimirogers.catchers.cn/ mimi rogers] [http://watches.emptio.cn/ watches] [http://isuzurodeo.orbitar.cn/ isuzu rodeo] [http://actos.vulkanik.cn/ actos] [http://humulinninsulin.emptio.cn/ humulin n insulin] [http://hindiringtone.vulkanik.cn/ hindi ringtone] [http://soccerplayers.vulkanik.cn/ soccer players] [http://armaniperfume.peyote.cn/ armani perfume] [http://pornofree.emptio.cn/ porno free] [http://pharmacyschools.drover.cn/ pharmacy schools] [http://americajobbank.peyote.cn/ america job bank] [http://librax.mary-jane.cn/ librax] [http://testosterone.drover.cn/ testosterone the movie] [http://picturepackage.peyote.cn/ picture package] [http://evoker.cn/index8_250.html page] [http://freehealing.clootie.cn/ free healing] [http://digitalcameras.drover.cn/ digital cameras compare] [http://e139761motherboard.orbitar.cn/ e139761 motherboard] [http://jobscanada.catchers.cn/ jobs canada] [http://wachovia.orbitar.cn/ wachovia] [http://discountedcontact.drover.cn/ discounted contact lens] [http://catchers.cn/index2_1000.html page] [http://concerttickets.vulkanik.cn/ concert tickets] [http://zyrtec.vulkanik.cn/ zyrtec] [http://dknywatches.vulkanik.cn/ dkny watches] [http://gaygangbang.evoker.cn/ gay gangbang] [http://orbitar.cn/index5_666.html homepage] [http://freememberon.vulkanik.cn/ free member on runescape] [http://xxxfreeporn.outstay.cn/ xxx free porn] [http://orbitar.cn/index2_250.html map] [http://melyssafordwallpaper.catchers.cn/ melyssa ford wallpaper] [http://genealogy.evoker.cn/ genealogy] [http://toyotasienna.orbitar.cn/ toyota sienna] [http://chloehandbag.mary-jane.cn/ chloe handbag] [http://rolexreplica.peyote.cn/ rolex replica] [http://mapkeywestflorida.clootie.cn/ map key west florida] [http://yahoosearchengine.drover.cn/ yahoo search engine] [http://photosporno.outstay.cn/ photos porno] [http://cigarettes.peyote.cn/ cigarettes] [http://seasonale.orbitar.cn/ seasonale] [http://percocet.mary-jane.cn/ percocet] [http://evoker.cn/index3_666.html url] [http://flowmaster.clootie.cn/ flowmaster]
{{tabs|main=source|source=1|source2=1|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.


{{wrongtitle|title=phys_ballsocket}}
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.